diff --git a/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php b/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php index ea4e06c9de2..988afa702b9 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php @@ -190,7 +190,7 @@ abstract class EntityStorageControllerBase implements EntityStorageControllerInt // of making LegacyConfigFieldItem implement PrepareCacheInterface. // @todo Remove once all core field types have been converted (see // http://drupal.org/node/2014671). - || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['module'] . '_field_load'))) { + || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['provider'] . '_field_load'))) { // Call the prepareCache() method directly on each item // individually. @@ -211,7 +211,7 @@ abstract class EntityStorageControllerBase implements EntityStorageControllerInt if (is_subclass_of($type_definition['class'], '\Drupal\Core\Entity\Field\PrepareCacheInterface') // @todo Remove once all core field types have been converted // (see http://drupal.org/node/2014671). - || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['module'] . '_field_load'))) { + || (is_subclass_of($type_definition['class'], '\Drupal\field\Plugin\field\field_type\LegacyConfigFieldItem') && function_exists($type_definition['provider'] . '_field_load'))) { // Create the items object. $items = isset($entity->{$field_name}[$langcode]) ? $entity->{$field_name}[$langcode] : array(); diff --git a/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimeDefaultFormatter.php b/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimeDefaultFormatter.php index e5e0f27307d..a2ea342770d 100644 --- a/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimeDefaultFormatter.php +++ b/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimeDefaultFormatter.php @@ -24,7 +24,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * * @FieldFormatter( * id = "datetime_default", - * module = "datetime", * label = @Translation("Default"), * field_types = { * "datetime" diff --git a/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimePlainFormatter.php b/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimePlainFormatter.php index dde14bbe4e0..2eefd134e69 100644 --- a/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimePlainFormatter.php +++ b/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimePlainFormatter.php @@ -19,7 +19,6 @@ use Drupal\Core\Datetime\DrupalDateTime; * * @FieldFormatter( * id = "datetime_plain", - * module = "datetime", * label = @Translation("Plain"), * field_types = { * "datetime" diff --git a/core/modules/email/lib/Drupal/email/Plugin/field/formatter/MailToFormatter.php b/core/modules/email/lib/Drupal/email/Plugin/field/formatter/MailToFormatter.php index d70660187e4..25e2945ecdb 100644 --- a/core/modules/email/lib/Drupal/email/Plugin/field/formatter/MailToFormatter.php +++ b/core/modules/email/lib/Drupal/email/Plugin/field/formatter/MailToFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "email_mailto", - * module = "email", * label = @Translation("Email"), * field_types = { * "email" diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceEntityFormatter.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceEntityFormatter.php index 5e1fe1429c5..dd054f2359e 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceEntityFormatter.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceEntityFormatter.php @@ -19,7 +19,6 @@ use Drupal\entity_reference\Plugin\field\formatter\EntityReferenceFormatterBase; * * @FieldFormatter( * id = "entity_reference_entity_view", - * module = "entity_reference", * label = @Translation("Rendered entity"), * description = @Translation("Display the referenced entities rendered by entity_view()."), * field_types = { diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceIdFormatter.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceIdFormatter.php index e3e86ff972e..f7402bf73bd 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceIdFormatter.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceIdFormatter.php @@ -18,7 +18,6 @@ use Drupal\entity_reference\Plugin\field\formatter\EntityReferenceFormatterBase; * * @FieldFormatter( * id = "entity_reference_entity_id", - * module = "entity_reference", * label = @Translation("Entity ID"), * description = @Translation("Display the ID of the referenced entities."), * field_types = { diff --git a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceLabelFormatter.php b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceLabelFormatter.php index 56332abdbb3..c63dfd69ceb 100644 --- a/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceLabelFormatter.php +++ b/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceLabelFormatter.php @@ -18,7 +18,6 @@ use Drupal\entity_reference\Plugin\field\formatter\EntityReferenceFormatterBase; * * @FieldFormatter( * id = "entity_reference_label", - * module = "entity_reference", * label = @Translation("Label"), * description = @Translation("Display the label of the referenced entities."), * field_types = { diff --git a/core/modules/field/field.module b/core/modules/field/field.module index e929de6b224..272ca5da355 100644 --- a/core/modules/field/field.module +++ b/core/modules/field/field.module @@ -442,8 +442,8 @@ function field_sync_field_status() { // Set fields with missing field type or storage modules to inactive. foreach ($fields as $uuid => &$field) { // Associate field types. - if (isset($field_types[$field['type']]) && ($field['module'] != $field_types[$field['type']]['module'] || !$field['active'])) { - $field['module'] = $field_types[$field['type']]['module']; + if (isset($field_types[$field['type']]) && ($field['module'] != $field_types[$field['type']]['provider'] || !$field['active'])) { + $field['module'] = $field_types[$field['type']]['provider']; $field['active'] = TRUE; $changed[$uuid] = $field; } diff --git a/core/modules/field/lib/Drupal/field/Annotation/FieldFormatter.php b/core/modules/field/lib/Drupal/field/Annotation/FieldFormatter.php index f052c60c232..e688a7620d7 100644 --- a/core/modules/field/lib/Drupal/field/Annotation/FieldFormatter.php +++ b/core/modules/field/lib/Drupal/field/Annotation/FieldFormatter.php @@ -51,13 +51,6 @@ class FieldFormatter extends Plugin { */ public $description; - /** - * The name of the module providing the formatter. - * - * @var string - */ - public $module; - /** * The name of the field formatter class. * diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php index 1bb1ae45764..46023992a9a 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php @@ -356,7 +356,7 @@ class Field extends ConfigEntityBase implements FieldInterface { if (!$field_type) { throw new FieldException(format_string('Attempt to create a field of unknown type %type.', array('%type' => $this->type))); } - $this->module = $field_type['module']; + $this->module = $field_type['provider']; $this->active = TRUE; // Make sure all settings are present, so that a complete field diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php index ff4472fb8b9..c451fdb4681 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/ConfigEntityReferenceItemBase.php @@ -95,7 +95,7 @@ class ConfigEntityReferenceItemBase extends EntityReferenceItem implements Confi */ public static function schema(Field $field) { $definition = \Drupal::service('plugin.manager.entity.field.field_type')->getDefinition($field->type); - $module = $definition['module']; + $module = $definition['provider']; module_load_install($module); $callback = "{$module}_field_schema"; if (function_exists($callback)) { @@ -161,7 +161,7 @@ class ConfigEntityReferenceItemBase extends EntityReferenceItem implements Confi */ protected function getLegacyCallback($hook) { $definition = $this->getPluginDefinition(); - $module = $definition['module']; + $module = $definition['provider']; $callback = "{$module}_field_{$hook}"; if (function_exists($callback)) { return $callback; diff --git a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/LegacyFieldTypeDiscoveryDecorator.php b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/LegacyFieldTypeDiscoveryDecorator.php index 7a390ad66a9..04778b34b7f 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/LegacyFieldTypeDiscoveryDecorator.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Type/FieldType/LegacyFieldTypeDiscoveryDecorator.php @@ -64,7 +64,7 @@ class LegacyFieldTypeDiscoveryDecorator implements DiscoveryInterface { if (function_exists($function)) { foreach ($function() as $plugin_id => $definition) { $definition['id'] = $plugin_id; - $definition['module'] = $module; + $definition['provider'] = $module; $definition['list_class'] = '\Drupal\field\Plugin\field\field_type\LegacyConfigField'; $definitions[$plugin_id] = $definition; } diff --git a/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigField.php b/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigField.php index bfbf0927e79..31e65ca9c08 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigField.php +++ b/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigField.php @@ -102,7 +102,7 @@ class LegacyConfigField extends ConfigField { */ protected function legacyCallback($hook, $args = array()) { $definition = $this->getPluginDefinition(); - $module = $definition['module']; + $module = $definition['provider']; $callback = "{$module}_field_{$hook}"; if (function_exists($callback)) { $entity = $this->getParent(); diff --git a/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigFieldItem.php b/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigFieldItem.php index ad57dc28653..f5ab4474f9e 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigFieldItem.php +++ b/core/modules/field/lib/Drupal/field/Plugin/field/field_type/LegacyConfigFieldItem.php @@ -31,7 +31,7 @@ abstract class LegacyConfigFieldItem extends ConfigFieldItemBase implements Prep */ public static function schema(Field $field) { $definition = \Drupal::service('plugin.manager.entity.field.field_type')->getDefinition($field->type); - $module = $definition['module']; + $module = $definition['provider']; module_load_install($module); $callback = "{$module}_field_schema"; if (function_exists($callback)) { @@ -118,7 +118,7 @@ abstract class LegacyConfigFieldItem extends ConfigFieldItemBase implements Prep */ protected function getLegacyCallback($hook) { $definition = $this->getPluginDefinition(); - $module = $definition['module']; + $module = $definition['provider']; $callback = "{$module}_field_{$hook}"; if (function_exists($callback)) { return $callback; diff --git a/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php b/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php index 012ee4f3722..16cfcd1cf5c 100644 --- a/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php +++ b/core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php @@ -29,7 +29,7 @@ class FieldInfoTest extends FieldUnitTestBase { foreach ($field_type as $key => $val) { $this->assertEqual($info[$t_key][$key], $val, format_string('Field type %t_key key %key is %value', array('%t_key' => $t_key, '%key' => $key, '%value' => print_r($val, TRUE)))); } - $this->assertEqual($info[$t_key]['module'], 'field_test', 'Field type field_test module appears.'); + $this->assertEqual($info[$t_key]['provider'], 'field_test', 'Field type field_test module appears.'); } $storage_info = field_test_field_storage_info(); diff --git a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldDefaultFormatter.php b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldDefaultFormatter.php index 5a719b9236a..a54b2c348c5 100644 --- a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldDefaultFormatter.php +++ b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldDefaultFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "field_test_default", - * module = "field_test", * label = @Translation("Default"), * description = @Translation("Default formatter"), * field_types = { diff --git a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldEmptyFormatter.php b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldEmptyFormatter.php index 7addc4b82eb..b8e455c668c 100644 --- a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldEmptyFormatter.php +++ b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldEmptyFormatter.php @@ -18,7 +18,6 @@ use Drupal\field\Plugin\Type\Formatter\FormatterBase; * * @FieldFormatter( * id = "field_empty_test", - * module = "field_test", * label = @Translation("Field empty test"), * field_types = { * "test_field", diff --git a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldMultipleFormatter.php b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldMultipleFormatter.php index 1894ba36718..5b0b63b2070 100644 --- a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldMultipleFormatter.php +++ b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldMultipleFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "field_test_multiple", - * module = "field_test", * label = @Translation("Multiple"), * description = @Translation("Multiple formatter"), * field_types = { diff --git a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldPrepareViewFormatter.php b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldPrepareViewFormatter.php index 5c46e3b991a..946797a18ce 100644 --- a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldPrepareViewFormatter.php +++ b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/field/formatter/TestFieldPrepareViewFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "field_test_with_prepare_view", - * module = "field_test", * label = @Translation("With prepare step"), * description = @Translation("Tests prepareView() method"), * field_types = { 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 cd3d640a2bb..7485f885b3f 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/FieldListController.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/FieldListController.php @@ -109,7 +109,7 @@ class FieldListController extends ConfigEntityListController { } $field_type = $this->fieldTypes[$entity->getFieldType()]; - $row['data']['type'] = t('@type (module: @module)', array('@type' => $field_type['label'], '@module' => $field_type['module'])); + $row['data']['type'] = t('@type (module: @module)', array('@type' => $field_type['label'], '@module' => $field_type['provider'])); $usage = array(); foreach($this->fieldInfo[$entity->id()]['bundles'] as $entity_type => $field_bundles) { diff --git a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/GenericFileFormatter.php b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/GenericFileFormatter.php index 91a538339bc..abf6e92ab59 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/GenericFileFormatter.php +++ b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/GenericFileFormatter.php @@ -17,7 +17,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "file_default", - * module = "file", * label = @Translation("Generic file"), * field_types = { * "file" diff --git a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/RSSEnclosureFormatter.php b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/RSSEnclosureFormatter.php index 2880e700282..d18234f4131 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/RSSEnclosureFormatter.php +++ b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/RSSEnclosureFormatter.php @@ -17,7 +17,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "file_rss_enclosure", - * module = "file", * label = @Translation("RSS enclosure"), * field_types = { * "file" diff --git a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/TableFormatter.php b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/TableFormatter.php index c97c0920a46..dfe8f43da1a 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/TableFormatter.php +++ b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/TableFormatter.php @@ -17,7 +17,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "file_table", - * module = "file", * label = @Translation("Table of files"), * field_types = { * "file" diff --git a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/UrlPlainFormatter.php b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/UrlPlainFormatter.php index 7edcb069c57..9138a077cad 100644 --- a/core/modules/file/lib/Drupal/file/Plugin/field/formatter/UrlPlainFormatter.php +++ b/core/modules/file/lib/Drupal/file/Plugin/field/formatter/UrlPlainFormatter.php @@ -17,7 +17,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "file_url_plain", - * module = "file", * label = @Translation("URL to file"), * field_types = { * "file" diff --git a/core/modules/image/lib/Drupal/image/Plugin/field/formatter/ImageFormatter.php b/core/modules/image/lib/Drupal/image/Plugin/field/formatter/ImageFormatter.php index 1148b3eb52e..32c82ada7d6 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/field/formatter/ImageFormatter.php +++ b/core/modules/image/lib/Drupal/image/Plugin/field/formatter/ImageFormatter.php @@ -17,7 +17,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "image", - * module = "image", * label = @Translation("Image"), * field_types = { * "image" diff --git a/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php b/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php index 00039b686de..29e7eb988ba 100644 --- a/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php +++ b/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php @@ -20,7 +20,6 @@ use Drupal\field\Plugin\Type\Formatter\FormatterBase; * * @FieldFormatter( * id = "link", - * module = "link", * label = @Translation("Link"), * field_types = { * "link" diff --git a/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkSeparateFormatter.php b/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkSeparateFormatter.php index 16815209918..f249bbe778a 100644 --- a/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkSeparateFormatter.php +++ b/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkSeparateFormatter.php @@ -16,14 +16,12 @@ use Drupal\field\Annotation\FieldFormatter; use Drupal\Core\Annotation\Translation; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\Field\FieldInterface; -use Drupal\field\Plugin\Type\Formatter\FormatterBase; /** * Plugin implementation of the 'link_separate' formatter. * * @FieldFormatter( * id = "link_separate", - * module = "link", * label = @Translation("Separate link text and URL"), * field_types = { * "link" diff --git a/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberDecimalFormatter.php b/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberDecimalFormatter.php index 21fe5c0d247..012d6527c98 100644 --- a/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberDecimalFormatter.php +++ b/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberDecimalFormatter.php @@ -23,7 +23,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "number_decimal", - * module = "number", * label = @Translation("Default"), * field_types = { * "number_decimal", diff --git a/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberIntegerFormatter.php b/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberIntegerFormatter.php index 446f226f85e..93f0fa521c7 100644 --- a/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberIntegerFormatter.php +++ b/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberIntegerFormatter.php @@ -23,7 +23,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "number_integer", - * module = "number", * label = @Translation("Default"), * field_types = { * "number_integer" diff --git a/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberUnformattedFormatter.php b/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberUnformattedFormatter.php index a7c0feec71b..75b6d6d4c64 100644 --- a/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberUnformattedFormatter.php +++ b/core/modules/number/lib/Drupal/number/Plugin/field/formatter/NumberUnformattedFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "number_unformatted", - * module = "number", * label = @Translation("Unformatted"), * field_types = { * "number_integer", diff --git a/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsDefaultFormatter.php b/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsDefaultFormatter.php index 6f3bfcb20d4..312a1649fe9 100644 --- a/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsDefaultFormatter.php +++ b/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsDefaultFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "list_default", - * module = "options", * label = @Translation("Default"), * field_types = { * "list_integer", diff --git a/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsKeyFormatter.php b/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsKeyFormatter.php index 2e06b485f80..af0fff19653 100644 --- a/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsKeyFormatter.php +++ b/core/modules/options/lib/Drupal/options/Plugin/field/formatter/OptionsKeyFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "list_key", - * module = "options", * label = @Translation("Key"), * field_types = { * "list_integer", diff --git a/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php b/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php index 6dc91e914ca..b74147e4c5c 100644 --- a/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php +++ b/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php @@ -116,7 +116,7 @@ abstract class OptionsWidgetBase extends WidgetBase { // Get the list of options from the field type module, and sanitize them. $field_type_info = field_info_field_types($this->fieldDefinition->getFieldType()); - $module = $field_type_info['module']; + $module = $field_type_info['provider']; $options = (array) $module_handler->invoke($module, 'options_list', array($this->fieldDefinition, $this->entity)); // Add an empty option if the widget needs one. diff --git a/core/modules/picture/lib/Drupal/picture/Plugin/field/formatter/PictureFormatter.php b/core/modules/picture/lib/Drupal/picture/Plugin/field/formatter/PictureFormatter.php index be7484bba54..9cfe0a8e21c 100644 --- a/core/modules/picture/lib/Drupal/picture/Plugin/field/formatter/PictureFormatter.php +++ b/core/modules/picture/lib/Drupal/picture/Plugin/field/formatter/PictureFormatter.php @@ -18,7 +18,6 @@ use Drupal\image\Plugin\field\formatter\ImageFormatterBase; * * @FieldFormatter( * id = "picture", - * module = "picture", * label = @Translation("Picture"), * field_types = { * "image", diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/EntityReferenceTaxonomyTermRssFormatter.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/EntityReferenceTaxonomyTermRssFormatter.php index a7f65308f7d..de2d2fbd9a5 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/EntityReferenceTaxonomyTermRssFormatter.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/EntityReferenceTaxonomyTermRssFormatter.php @@ -20,7 +20,6 @@ use Drupal\entity_reference\Plugin\field\formatter\EntityReferenceFormatterBase; * * @FieldFormatter( * id = "entity_reference_rss_category", - * module = "taxonomy", * label = @Translation("RSS category"), * description = @Translation("Display reference to taxonomy term in RSS."), * field_types = { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/LinkFormatter.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/LinkFormatter.php index 85ee34042ca..6ce9e531fe2 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/LinkFormatter.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/LinkFormatter.php @@ -19,7 +19,6 @@ use Drupal\taxonomy\Plugin\field\formatter\TaxonomyFormatterBase; * * @FieldFormatter( * id = "taxonomy_term_reference_link", - * module = "taxonomy", * label = @Translation("Link"), * field_types = { * "taxonomy_term_reference" diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/PlainFormatter.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/PlainFormatter.php index 61cfb5beb0b..36de426a549 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/PlainFormatter.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/PlainFormatter.php @@ -11,7 +11,6 @@ use Drupal\field\Annotation\FieldFormatter; use Drupal\Core\Annotation\Translation; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\Field\FieldInterface; -use Drupal\field\Plugin\Type\Formatter\FormatterBase; use Drupal\taxonomy\Plugin\field\formatter\TaxonomyFormatterBase; /** @@ -19,7 +18,6 @@ use Drupal\taxonomy\Plugin\field\formatter\TaxonomyFormatterBase; * * @FieldFormatter( * id = "taxonomy_term_reference_plain", - * module = "taxonomy", * label = @Translation("Plain text"), * field_types = { * "taxonomy_term_reference" diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/RSSCategoryFormatter.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/RSSCategoryFormatter.php index 0a2ff8075a5..69b0f2b3e9e 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/RSSCategoryFormatter.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/field/formatter/RSSCategoryFormatter.php @@ -11,7 +11,6 @@ use Drupal\field\Annotation\FieldFormatter; use Drupal\Core\Annotation\Translation; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\Field\FieldInterface; -use Drupal\field\Plugin\Type\Formatter\FormatterBase; use Drupal\taxonomy\Plugin\field\formatter\TaxonomyFormatterBase; /** @@ -19,7 +18,6 @@ use Drupal\taxonomy\Plugin\field\formatter\TaxonomyFormatterBase; * * @FieldFormatter( * id = "taxonomy_term_reference_rss_category", - * module = "taxonomy", * label = @Translation("RSS category"), * field_types = { * "taxonomy_term_reference" diff --git a/core/modules/telephone/lib/Drupal/telephone/Plugin/field/field_type/TelephoneItem.php b/core/modules/telephone/lib/Drupal/telephone/Plugin/field/field_type/TelephoneItem.php index c7725d9f05e..2edecc2bf91 100644 --- a/core/modules/telephone/lib/Drupal/telephone/Plugin/field/field_type/TelephoneItem.php +++ b/core/modules/telephone/lib/Drupal/telephone/Plugin/field/field_type/TelephoneItem.php @@ -17,7 +17,6 @@ use Drupal\field\Plugin\Core\Entity\Field; * * @FieldType( * id = "telephone", - * module = "telephone", * label = @Translation("Telephone number"), * description = @Translation("This field stores a telephone number in the database."), * default_widget = "telephone_default", diff --git a/core/modules/telephone/lib/Drupal/telephone/Plugin/field/formatter/TelephoneLinkFormatter.php b/core/modules/telephone/lib/Drupal/telephone/Plugin/field/formatter/TelephoneLinkFormatter.php index a33409e3b2d..d922984f043 100644 --- a/core/modules/telephone/lib/Drupal/telephone/Plugin/field/formatter/TelephoneLinkFormatter.php +++ b/core/modules/telephone/lib/Drupal/telephone/Plugin/field/formatter/TelephoneLinkFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "telephone_link", - * module = "telephone", * label = @Translation("Telephone link"), * field_types = { * "telephone" diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItem.php b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItem.php index 1c79cf719bb..0f062543d2a 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItem.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextItem.php @@ -16,7 +16,6 @@ use Drupal\field\Plugin\Core\Entity\Field; * * @FieldType( * id = "text", - * module = "text", * label = @Translation("Text"), * description = @Translation("This field stores varchar text in the database."), * settings = { diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextLongItem.php b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextLongItem.php index be86655eaba..82fda1ccd6c 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextLongItem.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextLongItem.php @@ -16,7 +16,6 @@ use Drupal\field\Plugin\Core\Entity\Field; * * @FieldType( * id = "text_long", - * module = "text", * label = @Translation("Long text"), * description = @Translation("This field stores long text in the database."), * instance_settings = { diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextWithSummaryItem.php b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextWithSummaryItem.php index 7aecf67260a..5aad0f2955d 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextWithSummaryItem.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/field_type/TextWithSummaryItem.php @@ -16,7 +16,6 @@ use Drupal\field\Plugin\Core\Entity\Field; * * @FieldType( * id = "text_with_summary", - * module = "text", * label = @Translation("Long text and summary"), * description = @Translation("This field stores long text in the database along with optional summary text."), * instance_settings = { diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextDefaultFormatter.php b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextDefaultFormatter.php index 2de5aacf818..dd0ee712b8a 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextDefaultFormatter.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextDefaultFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "text_default", - * module = "text", * label = @Translation("Default"), * field_types = { * "text", diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextPlainFormatter.php b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextPlainFormatter.php index d6c947df750..2a95803d80e 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextPlainFormatter.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextPlainFormatter.php @@ -18,7 +18,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "text_plain", - * module = "text", * label = @Translation("Plain text"), * field_types = { * "text", diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextSummaryOrTrimmedFormatter.php b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextSummaryOrTrimmedFormatter.php index e0a0de07341..12f03fccf82 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextSummaryOrTrimmedFormatter.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextSummaryOrTrimmedFormatter.php @@ -15,7 +15,6 @@ use Drupal\Core\Annotation\Translation; * * @FieldFormatter( * id = "text_summary_or_trimmed", - * module = "text", * label = @Translation("Summary or trimmed"), * field_types = { * "text_with_summary" diff --git a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextTrimmedFormatter.php b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextTrimmedFormatter.php index 8cd7045d79d..f2ca9e461fb 100644 --- a/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextTrimmedFormatter.php +++ b/core/modules/text/lib/Drupal/text/Plugin/field/formatter/TextTrimmedFormatter.php @@ -23,7 +23,6 @@ use Drupal\Core\Entity\Field\FieldInterface; * * @FieldFormatter( * id = "text_trimmed", - * module = "text", * label = @Translation("Trimmed"), * field_types = { * "text",