Issue #2052751 by tim.plunkett, oriol_e9g, yched | alexpott: Fixed WidgetFactory is not used anywhere so it should be removed.
parent
b34bcec02a
commit
87cb9a69fb
|
@ -1,25 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Contains \Drupal\Core\Field\WidgetFactory.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Drupal\Core\Field;
|
|
||||||
|
|
||||||
use Drupal\Component\Plugin\Factory\DefaultFactory;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Factory class for the Widget plugin type.
|
|
||||||
*/
|
|
||||||
class WidgetFactory extends DefaultFactory {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function createInstance($plugin_id, array $configuration = array()) {
|
|
||||||
$plugin_definition = $this->discovery->getDefinition($plugin_id);
|
|
||||||
$plugin_class = static::getPluginClass($plugin_id, $plugin_definition, $this->interface);
|
|
||||||
return new $plugin_class($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings']);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -51,8 +51,6 @@ class WidgetPluginManager extends DefaultPluginManager {
|
||||||
|
|
||||||
$this->setCacheBackend($cache_backend, 'field_widget_types_plugins');
|
$this->setCacheBackend($cache_backend, 'field_widget_types_plugins');
|
||||||
$this->alterInfo('field_widget_info');
|
$this->alterInfo('field_widget_info');
|
||||||
|
|
||||||
$this->factory = new WidgetFactory($this);
|
|
||||||
$this->fieldTypeManager = $field_type_manager;
|
$this->fieldTypeManager = $field_type_manager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue