Commit 87cb9a69 authored by alexpott's avatar alexpott
Browse files

Issue #2052751 by tim.plunkett, oriol_e9g, yched | alexpott: Fixed...

Issue #2052751 by tim.plunkett, oriol_e9g, yched | alexpott: Fixed WidgetFactory is not used anywhere so it should be removed.
parent b34bcec0
<?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 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac
$this->setCacheBackend($cache_backend, 'field_widget_types_plugins');
$this->alterInfo('field_widget_info');
$this->factory = new WidgetFactory($this);
$this->fieldTypeManager = $field_type_manager;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment