diff --git a/core/modules/edit/lib/Drupal/edit/EditorSelector.php b/core/modules/edit/lib/Drupal/edit/EditorSelector.php index f810ab9..b59a68c 100644 --- a/core/modules/edit/lib/Drupal/edit/EditorSelector.php +++ b/core/modules/edit/lib/Drupal/edit/EditorSelector.php @@ -44,7 +44,7 @@ class EditorSelector implements EditorSelectorInterface { * @param \Drupal\Component\Plugin\PluginManagerInterface * The manager for editor plugins. * @param \Drupal\field\Plugin\Type\Formatter\FormatterPluginManager - * The formatter manager. + * The manager for formatter plugins. */ public function __construct(PluginManagerInterface $editor_manager, FormatterPluginManager $formatter_manager) { $this->editorManager = $editor_manager; diff --git a/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php b/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php index c1982c5..c04733a 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/EditorSelectionTest.php @@ -41,7 +41,7 @@ function setUp() { parent::setUp(); $this->editorManager = $this->container->get('plugin.manager.edit.editor'); - $this->editorSelector = new EditorSelector($this->editorManager); + $this->editorSelector = new EditorSelector($this->editorManager, $this->container->get('plugin.manager.field.formatter')); } /** diff --git a/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php b/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php index a930988..5860065 100644 --- a/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php +++ b/core/modules/edit/lib/Drupal/edit/Tests/MetadataGeneratorTest.php @@ -59,7 +59,7 @@ function setUp() { $this->editorManager = $this->container->get('plugin.manager.edit.editor'); $this->accessChecker = new MockEditEntityFieldAccessCheck(); - $this->editorSelector = new EditorSelector($this->editorManager); + $this->editorSelector = new EditorSelector($this->editorManager, $this->container->get('plugin.manager.field.formatter')); $this->metadataGenerator = new MetadataGenerator($this->accessChecker, $this->editorSelector, $this->editorManager); } diff --git a/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php b/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php index d2ec5e6..463964c 100644 --- a/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php +++ b/core/modules/editor/lib/Drupal/editor/Tests/EditIntegrationTest.php @@ -124,7 +124,7 @@ protected function getSelectedEditor($items, $field_name, $view_mode = 'default' */ function testEditorSelection() { $this->editorManager = new InPlaceEditorManager($this->container->get('container.namespaces')); - $this->editorSelector = new EditorSelector($this->editorManager); + $this->editorSelector = new EditorSelector($this->editorManager, $this->container->get('plugin.manager.field.formatter')); // Pretend there is an entity with these items for the field. $items = array(array('value' => 'Hello, world!', 'format' => 'filtered_html')); @@ -149,7 +149,7 @@ function testEditorSelection() { function testMetadata() { $this->editorManager = new InPlaceEditorManager($this->container->get('container.namespaces')); $this->accessChecker = new MockEditEntityFieldAccessCheck(); - $this->editorSelector = new EditorSelector($this->editorManager); + $this->editorSelector = new EditorSelector($this->editorManager, $this->container->get('plugin.manager.field.formatter')); $this->metadataGenerator = new MetadataGenerator($this->accessChecker, $this->editorSelector, $this->editorManager); // Create an entity with values for the field. diff --git a/core/modules/field/lib/Drupal/field/FieldInfo.php b/core/modules/field/lib/Drupal/field/FieldInfo.php index 223b1b7..2639c25 100644 --- a/core/modules/field/lib/Drupal/field/FieldInfo.php +++ b/core/modules/field/lib/Drupal/field/FieldInfo.php @@ -132,7 +132,7 @@ class FieldInfo { * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler class to use for invoking hooks. * @param \Drupal\Core\Entity\Field\FieldTypePluginManager $field_type_manager - * The field type manager. + * The 'field type' plugin manager. */ public function __construct(CacheBackendInterface $cache_backend, ConfigFactory $config, ModuleHandlerInterface $module_handler, FieldTypePluginManager $field_type_manager) { $this->cacheBackend = $cache_backend; diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php index 0cd9d6f..425e183 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterPluginManager.php @@ -51,7 +51,7 @@ class FormatterPluginManager extends DefaultPluginManager { * @param \Drupal\Core\Language\LanguageManager $language_manager * The language manager. * @param \Drupal\Core\Entity\Field\FieldTypePluginManager $field_type_manager - * The field type manager. + * The 'field type' plugin manager. */ public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, LanguageManager $language_manager, FieldTypePluginManager $field_type_manager) { $annotation_namespaces = array('Drupal\field\Annotation' => $namespaces['Drupal\field']); diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetPluginManager.php b/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetPluginManager.php index dd94c99..076e253 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetPluginManager.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetPluginManager.php @@ -51,7 +51,7 @@ class WidgetPluginManager extends DefaultPluginManager { * @param \Drupal\Core\Language\LanguageManager $language_manager * The language manager. * @param \Drupal\Core\Entity\Field\FieldTypePluginManager $field_type_manager - * The field type manager. + * The 'field type' plugin manager. */ public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, LanguageManager $language_manager, FieldTypePluginManager $field_type_manager) { $annotation_namespaces = array('Drupal\field\Annotation' => $namespaces['Drupal\field']); diff --git a/core/modules/field_ui/lib/Drupal/field_ui/FieldListController.php b/core/modules/field_ui/lib/Drupal/field_ui/FieldListController.php index 22fb826..23cba96 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/FieldListController.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/FieldListController.php @@ -68,15 +68,17 @@ class FieldListController extends ConfigEntityListController { * The module handler to invoke hooks on. * @param \Drupal\field\FieldInfo $field_info * The field info service. + * @param \Drupal\Core\Entity\Field\FieldTypePluginManager $field_type_manager + * The 'field type' plugin manager. */ public function __construct($entity_type, array $entity_info, EntityManager $entity_manager, ModuleHandlerInterface $module_handler, FieldInfo $field_info, FieldTypePluginManager $field_type_manager) { parent::__construct($entity_type, $entity_info, $entity_manager->getStorageController($entity_type), $module_handler); - $this->fieldTypes = $this->fieldTypeManager->getDefinitions(); $this->fieldInfo = $field_info->getFieldMap(); $this->entityManager = $entity_manager; $this->bundles = entity_get_bundles(); $this->fieldTypeManager = $field_type_manager; + $this->fieldTypes = $this->fieldTypeManager->getDefinitions(); } /**