Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
drupal
Commits
3ded2216
Commit
3ded2216
authored
Oct 19, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2115145
by Berdir | effulgentsia: Move field type plugins to Plugin/Field/FieldType.
parent
c1027b9d
Changes
181
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
181 changed files
with
432 additions
and
460 deletions
+432
-460
core/lib/Drupal/Core/Entity/ContentEntityBase.php
core/lib/Drupal/Core/Entity/ContentEntityBase.php
+1
-1
core/lib/Drupal/Core/Entity/ContentEntityInterface.php
core/lib/Drupal/Core/Entity/ContentEntityInterface.php
+2
-2
core/lib/Drupal/Core/Entity/EntityAccessController.php
core/lib/Drupal/Core/Entity/EntityAccessController.php
+2
-2
core/lib/Drupal/Core/Entity/EntityAccessControllerInterface.php
...ib/Drupal/Core/Entity/EntityAccessControllerInterface.php
+4
-4
core/lib/Drupal/Core/Entity/FieldableEntityStorageControllerBase.php
...upal/Core/Entity/FieldableEntityStorageControllerBase.php
+2
-2
core/lib/Drupal/Core/Entity/Plugin/DataType/FieldItem.php
core/lib/Drupal/Core/Entity/Plugin/DataType/FieldItem.php
+2
-2
core/lib/Drupal/Core/Field/ConfigEntityReferenceItemBase.php
core/lib/Drupal/Core/Field/ConfigEntityReferenceItemBase.php
+7
-8
core/lib/Drupal/Core/Field/ConfigFieldItemBase.php
core/lib/Drupal/Core/Field/ConfigFieldItemBase.php
+2
-4
core/lib/Drupal/Core/Field/ConfigFieldItemInterface.php
core/lib/Drupal/Core/Field/ConfigFieldItemInterface.php
+2
-3
core/lib/Drupal/Core/Field/ConfigFieldItemList.php
core/lib/Drupal/Core/Field/ConfigFieldItemList.php
+4
-5
core/lib/Drupal/Core/Field/ConfigFieldItemListInterface.php
core/lib/Drupal/Core/Field/ConfigFieldItemListInterface.php
+2
-4
core/lib/Drupal/Core/Field/FieldDefinition.php
core/lib/Drupal/Core/Field/FieldDefinition.php
+11
-10
core/lib/Drupal/Core/Field/FieldDefinitionInterface.php
core/lib/Drupal/Core/Field/FieldDefinitionInterface.php
+4
-4
core/lib/Drupal/Core/Field/FieldItemBase.php
core/lib/Drupal/Core/Field/FieldItemBase.php
+7
-7
core/lib/Drupal/Core/Field/FieldItemInterface.php
core/lib/Drupal/Core/Field/FieldItemInterface.php
+5
-5
core/lib/Drupal/Core/Field/FieldItemList.php
core/lib/Drupal/Core/Field/FieldItemList.php
+9
-10
core/lib/Drupal/Core/Field/FieldItemListInterface.php
core/lib/Drupal/Core/Field/FieldItemListInterface.php
+10
-10
core/lib/Drupal/Core/Field/FieldTypePluginManager.php
core/lib/Drupal/Core/Field/FieldTypePluginManager.php
+3
-4
core/lib/Drupal/Core/Field/FormatterBase.php
core/lib/Drupal/Core/Field/FormatterBase.php
+2
-6
core/lib/Drupal/Core/Field/FormatterInterface.php
core/lib/Drupal/Core/Field/FormatterInterface.php
+3
-6
core/lib/Drupal/Core/Field/LegacyFieldTypeDiscoveryDecorator.php
...b/Drupal/Core/Field/LegacyFieldTypeDiscoveryDecorator.php
+5
-5
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
.../Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DateItem.php
...lib/Drupal/Core/Field/Plugin/Field/FieldType/DateItem.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
...ib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
...Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
+7
-9
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php
...ib/Drupal/Core/Field/Plugin/Field/FieldType/FloatItem.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/IntegerItem.php
.../Drupal/Core/Field/Plugin/Field/FieldType/IntegerItem.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php
...Drupal/Core/Field/Plugin/Field/FieldType/LanguageItem.php
+4
-4
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LegacyConfigFieldItem.php
...re/Field/Plugin/Field/FieldType/LegacyConfigFieldItem.php
+4
-4
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/LegacyConfigFieldItemList.php
...ield/Plugin/Field/FieldType/LegacyConfigFieldItemList.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php
...b/Drupal/Core/Field/Plugin/Field/FieldType/StringItem.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/UriItem.php
.../lib/Drupal/Core/Field/Plugin/Field/FieldType/UriItem.php
+3
-3
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/UuidItem.php
...lib/Drupal/Core/Field/Plugin/Field/FieldType/UuidItem.php
+2
-2
core/lib/Drupal/Core/Field/PluginSettingsBase.php
core/lib/Drupal/Core/Field/PluginSettingsBase.php
+1
-2
core/lib/Drupal/Core/Field/PluginSettingsInterface.php
core/lib/Drupal/Core/Field/PluginSettingsInterface.php
+1
-1
core/lib/Drupal/Core/Field/PrepareCacheInterface.php
core/lib/Drupal/Core/Field/PrepareCacheInterface.php
+3
-3
core/lib/Drupal/Core/Field/WidgetBase.php
core/lib/Drupal/Core/Field/WidgetBase.php
+3
-6
core/lib/Drupal/Core/Field/WidgetBaseInterface.php
core/lib/Drupal/Core/Field/WidgetBaseInterface.php
+3
-6
core/lib/Drupal/Core/Field/WidgetInterface.php
core/lib/Drupal/Core/Field/WidgetInterface.php
+1
-3
core/lib/Drupal/Core/TypedData/TypedDataManager.php
core/lib/Drupal/Core/TypedData/TypedDataManager.php
+0
-1
core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php
.../modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php
+13
-13
core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php
.../modules/aggregator/lib/Drupal/aggregator/Entity/Item.php
+9
-9
core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlock.php
...stom_block/lib/Drupal/custom_block/Entity/CustomBlock.php
+8
-8
core/modules/comment/comment.install
core/modules/comment/comment.install
+1
-1
core/modules/comment/comment.module
core/modules/comment/comment.module
+1
-1
core/modules/comment/lib/Drupal/comment/CommentFieldName.php
core/modules/comment/lib/Drupal/comment/CommentFieldName.php
+1
-1
core/modules/comment/lib/Drupal/comment/Entity/Comment.php
core/modules/comment/lib/Drupal/comment/Entity/Comment.php
+17
-17
core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
...t/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
+3
-3
core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldType/CommentItem.php
...lib/Drupal/comment/Plugin/Field/FieldType/CommentItem.php
+3
-3
core/modules/comment/lib/Drupal/comment/Plugin/Field/FieldWidget/CommentWidget.php
...Drupal/comment/Plugin/Field/FieldWidget/CommentWidget.php
+1
-1
core/modules/content_translation/content_translation.admin.inc
...modules/content_translation/content_translation.admin.inc
+2
-2
core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldFormatter/DatetimeDefaultFormatter.php
.../Plugin/Field/FieldFormatter/DatetimeDefaultFormatter.php
+3
-3
core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldFormatter/DatetimePlainFormatter.php
...me/Plugin/Field/FieldFormatter/DatetimePlainFormatter.php
+1
-1
core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldType/DateTimeItem.php
...b/Drupal/datetime/Plugin/Field/FieldType/DateTimeItem.php
+4
-4
core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldWidget/DatetimeDatelistWidget.php
...etime/Plugin/Field/FieldWidget/DatetimeDatelistWidget.php
+2
-2
core/modules/datetime/lib/Drupal/datetime/Plugin/Field/FieldWidget/DatetimeDefaultWidget.php
...tetime/Plugin/Field/FieldWidget/DatetimeDefaultWidget.php
+2
-2
core/modules/datetime/lib/Drupal/datetime/Tests/DateTimeItemTest.php
...s/datetime/lib/Drupal/datetime/Tests/DateTimeItemTest.php
+2
-2
core/modules/edit/lib/Drupal/edit/EditPluginInterface.php
core/modules/edit/lib/Drupal/edit/EditPluginInterface.php
+3
-3
core/modules/edit/lib/Drupal/edit/EditorBase.php
core/modules/edit/lib/Drupal/edit/EditorBase.php
+1
-1
core/modules/edit/lib/Drupal/edit/EditorSelector.php
core/modules/edit/lib/Drupal/edit/EditorSelector.php
+1
-1
core/modules/edit/lib/Drupal/edit/EditorSelectorInterface.php
.../modules/edit/lib/Drupal/edit/EditorSelectorInterface.php
+2
-2
core/modules/edit/lib/Drupal/edit/MetadataGenerator.php
core/modules/edit/lib/Drupal/edit/MetadataGenerator.php
+1
-1
core/modules/edit/lib/Drupal/edit/MetadataGeneratorInterface.php
...dules/edit/lib/Drupal/edit/MetadataGeneratorInterface.php
+2
-2
core/modules/edit/lib/Drupal/edit/Plugin/InPlaceEditor/DirectEditor.php
...dit/lib/Drupal/edit/Plugin/InPlaceEditor/DirectEditor.php
+1
-1
core/modules/edit/lib/Drupal/edit/Plugin/InPlaceEditor/FormEditor.php
.../edit/lib/Drupal/edit/Plugin/InPlaceEditor/FormEditor.php
+1
-1
core/modules/edit/tests/modules/lib/Drupal/edit_test/Plugin/InPlaceEditor/WysiwygEditor.php
...b/Drupal/edit_test/Plugin/InPlaceEditor/WysiwygEditor.php
+1
-1
core/modules/editor/lib/Drupal/editor/Plugin/InPlaceEditor/Editor.php
.../editor/lib/Drupal/editor/Plugin/InPlaceEditor/Editor.php
+1
-1
core/modules/email/email.module
core/modules/email/email.module
+1
-1
core/modules/email/lib/Drupal/email/ConfigurableEmailItem.php
.../modules/email/lib/Drupal/email/ConfigurableEmailItem.php
+2
-2
core/modules/email/lib/Drupal/email/Plugin/Field/FieldFormatter/MailToFormatter.php
...pal/email/Plugin/Field/FieldFormatter/MailToFormatter.php
+1
-1
core/modules/email/lib/Drupal/email/Plugin/Field/FieldWidget/EmailDefaultWidget.php
...pal/email/Plugin/Field/FieldWidget/EmailDefaultWidget.php
+1
-1
core/modules/email/lib/Drupal/email/Tests/EmailItemTest.php
core/modules/email/lib/Drupal/email/Tests/EmailItemTest.php
+2
-2
core/modules/entity/lib/Drupal/entity/EntityDisplayBaseInterface.php
...s/entity/lib/Drupal/entity/EntityDisplayBaseInterface.php
+1
-1
core/modules/entity_reference/entity_reference.module
core/modules/entity_reference/entity_reference.module
+3
-3
core/modules/entity_reference/lib/Drupal/entity_reference/ConfigurableEntityReferenceItem.php
...upal/entity_reference/ConfigurableEntityReferenceItem.php
+2
-2
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldFormatter/EntityReferenceEntityFormatter.php
...n/Field/FieldFormatter/EntityReferenceEntityFormatter.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldFormatter/EntityReferenceIdFormatter.php
...lugin/Field/FieldFormatter/EntityReferenceIdFormatter.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php
...in/Field/FieldFormatter/EntityReferenceLabelFormatter.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldWidget/AutocompleteWidget.php
...reference/Plugin/Field/FieldWidget/AutocompleteWidget.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Field/FieldWidget/AutocompleteWidgetBase.php
...rence/Plugin/Field/FieldWidget/AutocompleteWidgetBase.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/Selection/SelectionBroken.php
...ntity_reference/Plugin/Type/Selection/SelectionBroken.php
+1
-1
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/Selection/SelectionInterface.php
...ty_reference/Plugin/Type/Selection/SelectionInterface.php
+2
-2
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/SelectionPluginManager.php
...l/entity_reference/Plugin/Type/SelectionPluginManager.php
+2
-2
core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/entity_reference/selection/SelectionBase.php
...rence/Plugin/entity_reference/selection/SelectionBase.php
+2
-2
core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceItemTest.php
...Drupal/entity_reference/Tests/EntityReferenceItemTest.php
+2
-2
core/modules/entity_reference/lib/Drupal/entity_reference/Tests/EntityReferenceSelectionAccessTest.php
...ty_reference/Tests/EntityReferenceSelectionAccessTest.php
+1
-1
core/modules/field/field.api.php
core/modules/field/field.api.php
+1
-1
core/modules/field/field.install
core/modules/field/field.install
+1
-1
core/modules/field/lib/Drupal/field/FieldInstanceInterface.php
...modules/field/lib/Drupal/field/FieldInstanceInterface.php
+1
-1
core/modules/field/lib/Drupal/field/FieldInterface.php
core/modules/field/lib/Drupal/field/FieldInterface.php
+1
-1
core/modules/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php
...s/field/lib/Drupal/field/Tests/FieldAttachStorageTest.php
+3
-3
core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php
core/modules/field/lib/Drupal/field/Tests/FieldInfoTest.php
+3
-3
core/modules/field/lib/Drupal/field/Tests/ShapeItemTest.php
core/modules/field/lib/Drupal/field/Tests/ShapeItemTest.php
+2
-2
core/modules/field/lib/Drupal/field/Tests/TestItemTest.php
core/modules/field/lib/Drupal/field/Tests/TestItemTest.php
+2
-2
core/modules/field/tests/modules/field_test/field_test.field.inc
...dules/field/tests/modules/field_test/field_test.field.inc
+2
-2
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldFormatter/TestFieldDefaultFormatter.php
...Plugin/Field/FieldFormatter/TestFieldDefaultFormatter.php
+1
-1
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldFormatter/TestFieldEmptyFormatter.php
...t/Plugin/Field/FieldFormatter/TestFieldEmptyFormatter.php
+1
-1
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldFormatter/TestFieldEmptySettingFormatter.php
...n/Field/FieldFormatter/TestFieldEmptySettingFormatter.php
+1
-1
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldFormatter/TestFieldMultipleFormatter.php
...lugin/Field/FieldFormatter/TestFieldMultipleFormatter.php
+1
-1
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldFormatter/TestFieldPrepareViewFormatter.php
...in/Field/FieldFormatter/TestFieldPrepareViewFormatter.php
+1
-1
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldType/HiddenTestItem.php
...upal/field_test/Plugin/Field/FieldType/HiddenTestItem.php
+3
-2
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldType/ShapeItem.php
...ib/Drupal/field_test/Plugin/Field/FieldType/ShapeItem.php
+3
-5
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldType/TestItem.php
...lib/Drupal/field_test/Plugin/Field/FieldType/TestItem.php
+4
-4
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldWidget/TestFieldWidget.php
...l/field_test/Plugin/Field/FieldWidget/TestFieldWidget.php
+1
-1
core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
...test/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
+1
-1
core/modules/file/lib/Drupal/file/Plugin/Field/FieldFormatter/GenericFileFormatter.php
...file/Plugin/Field/FieldFormatter/GenericFileFormatter.php
+1
-1
core/modules/file/lib/Drupal/file/Plugin/Field/FieldFormatter/RSSEnclosureFormatter.php
...ile/Plugin/Field/FieldFormatter/RSSEnclosureFormatter.php
+1
-1
core/modules/file/lib/Drupal/file/Plugin/Field/FieldFormatter/TableFormatter.php
...rupal/file/Plugin/Field/FieldFormatter/TableFormatter.php
+1
-1
core/modules/file/lib/Drupal/file/Plugin/Field/FieldFormatter/UrlPlainFormatter.php
...al/file/Plugin/Field/FieldFormatter/UrlPlainFormatter.php
+1
-1
core/modules/file/lib/Drupal/file/Plugin/Field/FieldType/FileFieldItemList.php
.../Drupal/file/Plugin/Field/FieldType/FileFieldItemList.php
+3
-3
core/modules/file/lib/Drupal/file/Plugin/Field/FieldType/FileItem.php
.../file/lib/Drupal/file/Plugin/Field/FieldType/FileItem.php
+5
-5
core/modules/file/lib/Drupal/file/Plugin/Field/FieldWidget/FileWidget.php
...e/lib/Drupal/file/Plugin/Field/FieldWidget/FileWidget.php
+1
-1
core/modules/file/lib/Drupal/file/Tests/FileItemTest.php
core/modules/file/lib/Drupal/file/Tests/FileItemTest.php
+2
-2
core/modules/hal/lib/Drupal/hal/Normalizer/EntityReferenceItemNormalizer.php
...b/Drupal/hal/Normalizer/EntityReferenceItemNormalizer.php
+1
-1
core/modules/hal/lib/Drupal/hal/Normalizer/FieldItemNormalizer.php
...les/hal/lib/Drupal/hal/Normalizer/FieldItemNormalizer.php
+4
-4
core/modules/hal/lib/Drupal/hal/Normalizer/FieldNormalizer.php
...modules/hal/lib/Drupal/hal/Normalizer/FieldNormalizer.php
+2
-2
core/modules/image/lib/Drupal/image/Plugin/Field/FieldFormatter/ImageFormatter.php
...upal/image/Plugin/Field/FieldFormatter/ImageFormatter.php
+1
-1
core/modules/image/lib/Drupal/image/Plugin/Field/FieldType/ImageItem.php
...age/lib/Drupal/image/Plugin/Field/FieldType/ImageItem.php
+4
-4
core/modules/image/lib/Drupal/image/Plugin/Field/FieldWidget/ImageWidget.php
...lib/Drupal/image/Plugin/Field/FieldWidget/ImageWidget.php
+1
-1
core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php
core/modules/image/lib/Drupal/image/Tests/ImageItemTest.php
+2
-2
core/modules/link/lib/Drupal/link/Plugin/Field/FieldFormatter/LinkFormatter.php
...Drupal/link/Plugin/Field/FieldFormatter/LinkFormatter.php
+3
-3
core/modules/link/lib/Drupal/link/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php
...ink/Plugin/Field/FieldFormatter/LinkSeparateFormatter.php
+1
-1
core/modules/link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php
.../link/lib/Drupal/link/Plugin/Field/FieldType/LinkItem.php
+3
-3
core/modules/link/lib/Drupal/link/Plugin/Field/FieldWidget/LinkWidget.php
...k/lib/Drupal/link/Plugin/Field/FieldWidget/LinkWidget.php
+1
-1
core/modules/link/lib/Drupal/link/Tests/LinkItemTest.php
core/modules/link/lib/Drupal/link/Tests/LinkItemTest.php
+2
-2
core/modules/number/lib/Drupal/number/Plugin/Field/FieldFormatter/DefaultNumberFormatter.php
...er/Plugin/Field/FieldFormatter/DefaultNumberFormatter.php
+1
-1
core/modules/number/lib/Drupal/number/Plugin/Field/FieldFormatter/NumberUnformattedFormatter.php
...lugin/Field/FieldFormatter/NumberUnformattedFormatter.php
+1
-1
core/modules/number/lib/Drupal/number/Plugin/Field/FieldType/DecimalItem.php
.../lib/Drupal/number/Plugin/Field/FieldType/DecimalItem.php
+2
-2
core/modules/number/lib/Drupal/number/Plugin/Field/FieldType/FloatItem.php
...er/lib/Drupal/number/Plugin/Field/FieldType/FloatItem.php
+2
-2
core/modules/number/lib/Drupal/number/Plugin/Field/FieldType/IntegerItem.php
.../lib/Drupal/number/Plugin/Field/FieldType/IntegerItem.php
+2
-2
core/modules/number/lib/Drupal/number/Plugin/Field/FieldType/NumberItemBase.php
...b/Drupal/number/Plugin/Field/FieldType/NumberItemBase.php
+3
-3
core/modules/number/lib/Drupal/number/Plugin/Field/FieldWidget/NumberWidget.php
...b/Drupal/number/Plugin/Field/FieldWidget/NumberWidget.php
+1
-1
core/modules/number/lib/Drupal/number/Tests/NumberItemTest.php
...modules/number/lib/Drupal/number/Tests/NumberItemTest.php
+2
-2
core/modules/options/lib/Drupal/options/Plugin/Field/FieldFormatter/OptionsDefaultFormatter.php
...s/Plugin/Field/FieldFormatter/OptionsDefaultFormatter.php
+1
-1
core/modules/options/lib/Drupal/options/Plugin/Field/FieldFormatter/OptionsKeyFormatter.php
...tions/Plugin/Field/FieldFormatter/OptionsKeyFormatter.php
+1
-1
core/modules/options/lib/Drupal/options/Plugin/Field/FieldWidget/ButtonsWidget.php
...Drupal/options/Plugin/Field/FieldWidget/ButtonsWidget.php
+1
-1
core/modules/options/lib/Drupal/options/Plugin/Field/FieldWidget/OnOffWidget.php
...b/Drupal/options/Plugin/Field/FieldWidget/OnOffWidget.php
+1
-1
core/modules/options/lib/Drupal/options/Plugin/Field/FieldWidget/OptionsWidgetBase.php
...al/options/Plugin/Field/FieldWidget/OptionsWidgetBase.php
+5
-5
core/modules/options/lib/Drupal/options/Plugin/Field/FieldWidget/SelectWidget.php
.../Drupal/options/Plugin/Field/FieldWidget/SelectWidget.php
+1
-1
core/modules/options/lib/Drupal/options/Type/ListFloatItem.php
...modules/options/lib/Drupal/options/Type/ListFloatItem.php
+1
-1
core/modules/options/lib/Drupal/options/Type/ListIntegerItem.php
...dules/options/lib/Drupal/options/Type/ListIntegerItem.php
+1
-1
core/modules/options/lib/Drupal/options/Type/ListTextItem.php
.../modules/options/lib/Drupal/options/Type/ListTextItem.php
+1
-1
core/modules/options/options.api.php
core/modules/options/options.api.php
+1
-1
core/modules/options/options.module
core/modules/options/options.module
+2
-2
core/modules/options/tests/options_test.module
core/modules/options/tests/options_test.module
+1
-1
core/modules/path/lib/Drupal/path/Plugin/Field/FieldType/PathItem.php
.../path/lib/Drupal/path/Plugin/Field/FieldType/PathItem.php
+3
-3
core/modules/picture/lib/Drupal/picture/Plugin/Field/FieldFormatter/PictureFormatter.php
.../picture/Plugin/Field/FieldFormatter/PictureFormatter.php
+1
-1
core/modules/system/entity.api.php
core/modules/system/entity.api.php
+5
-5
core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
...system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
+2
-2
core/modules/system/lib/Drupal/system/Tests/Entity/EntityValidationTest.php
...m/lib/Drupal/system/Tests/Entity/EntityValidationTest.php
+2
-2
core/modules/system/tests/modules/entity_test/entity_test.module
...dules/system/tests/modules/entity_test/entity_test.module
+2
-2
core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php
.../entity_test/lib/Drupal/entity_test/Entity/EntityTest.php
+5
-5
core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTestRev.php
...tity_test/lib/Drupal/entity_test/Entity/EntityTestRev.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Term.php
core/modules/taxonomy/lib/Drupal/taxonomy/Entity/Term.php
+8
-8
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/EntityReferenceTaxonomyTermRssFormatter.php
...ieldFormatter/EntityReferenceTaxonomyTermRssFormatter.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/LinkFormatter.php
...al/taxonomy/Plugin/Field/FieldFormatter/LinkFormatter.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/PlainFormatter.php
...l/taxonomy/Plugin/Field/FieldFormatter/PlainFormatter.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldFormatter/RSSCategoryFormatter.php
...nomy/Plugin/Field/FieldFormatter/RSSCategoryFormatter.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/Field/FieldWidget/TaxonomyAutocompleteWidget.php
...y/Plugin/Field/FieldWidget/TaxonomyAutocompleteWidget.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/entity_reference/selection/TermSelection.php
...onomy/Plugin/entity_reference/selection/TermSelection.php
+1
-1
core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php
...b/Drupal/taxonomy/Tests/TaxonomyTermReferenceItemTest.php
+2
-2
core/modules/taxonomy/lib/Drupal/taxonomy/Type/TaxonomyTermReferenceItem.php
...my/lib/Drupal/taxonomy/Type/TaxonomyTermReferenceItem.php
+1
-1
core/modules/taxonomy/taxonomy.module
core/modules/taxonomy/taxonomy.module
+2
-2
core/modules/telephone/lib/Drupal/telephone/Plugin/Field/FieldFormatter/TelephoneLinkFormatter.php
...ne/Plugin/Field/FieldFormatter/TelephoneLinkFormatter.php
+1
-1
core/modules/telephone/lib/Drupal/telephone/Plugin/Field/FieldType/TelephoneItem.php
...Drupal/telephone/Plugin/Field/FieldType/TelephoneItem.php
+3
-3
core/modules/telephone/lib/Drupal/telephone/Plugin/Field/FieldWidget/TelephoneDefaultWidget.php
...phone/Plugin/Field/FieldWidget/TelephoneDefaultWidget.php
+1
-1
core/modules/telephone/lib/Drupal/telephone/Tests/TelephoneItemTest.php
...elephone/lib/Drupal/telephone/Tests/TelephoneItemTest.php
+2
-2
core/modules/text/lib/Drupal/text/Plugin/Field/FieldFormatter/TextDefaultFormatter.php
...text/Plugin/Field/FieldFormatter/TextDefaultFormatter.php
+1
-1
core/modules/text/lib/Drupal/text/Plugin/Field/FieldFormatter/TextPlainFormatter.php
...l/text/Plugin/Field/FieldFormatter/TextPlainFormatter.php
+1
-1
core/modules/text/lib/Drupal/text/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php
...text/Plugin/Field/FieldFormatter/TextTrimmedFormatter.php
+1
-1
core/modules/text/lib/Drupal/text/Plugin/Field/FieldType/TextItem.php
.../text/lib/Drupal/text/Plugin/Field/FieldType/TextItem.php
+2
-2
core/modules/text/lib/Drupal/text/Plugin/Field/FieldType/TextItemBase.php
...t/lib/Drupal/text/Plugin/Field/FieldType/TextItemBase.php
+4
-4
core/modules/text/lib/Drupal/text/Plugin/Field/FieldType/TextLongItem.php
...t/lib/Drupal/text/Plugin/Field/FieldType/TextLongItem.php
+2
-2
core/modules/text/lib/Drupal/text/Plugin/Field/FieldType/TextWithSummaryItem.php
...rupal/text/Plugin/Field/FieldType/TextWithSummaryItem.php
+2
-2
core/modules/text/lib/Drupal/text/Plugin/Field/FieldWidget/TextareaWidget.php
...b/Drupal/text/Plugin/Field/FieldWidget/TextareaWidget.php
+1
-1
core/modules/text/lib/Drupal/text/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
...xt/Plugin/Field/FieldWidget/TextareaWithSummaryWidget.php
+1
-1
core/modules/text/lib/Drupal/text/Plugin/Field/FieldWidget/TextfieldWidget.php
.../Drupal/text/Plugin/Field/FieldWidget/TextfieldWidget.php
+1
-1
core/modules/text/lib/Drupal/text/Tests/TextWithSummaryItemTest.php
...es/text/lib/Drupal/text/Tests/TextWithSummaryItemTest.php
+3
-3
core/modules/user/lib/Drupal/user/Plugin/entity_reference/selection/UserSelection.php
.../user/Plugin/entity_reference/selection/UserSelection.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php
...iews/Plugin/entity_reference/selection/ViewsSelection.php
+2
-2
core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
+2
-2
No files found.
core/lib/Drupal/Core/Entity/ContentEntityBase.php
View file @
3ded2216
...
...
@@ -383,7 +383,7 @@ public function get($property_name) {
/**
* Gets a translated field.
*
* @return \Drupal\Core\
Entity\
Field\FieldItemListInterface
* @return \Drupal\Core\Field\FieldItemListInterface
*/
protected
function
getTranslatedField
(
$property_name
,
$langcode
)
{
if
(
$this
->
translations
[
$this
->
activeLangcode
][
'status'
]
==
static
::
TRANSLATION_REMOVED
)
{
...
...
core/lib/Drupal/Core/Entity/ContentEntityInterface.php
View file @
3ded2216
...
...
@@ -17,14 +17,14 @@
* API, while extending them with content entity-specific additions. I.e., a
* content entity implements the ComplexDataInterface among others, thus is
* complex data containing fields as its data properties. The contained fields
* have to implement \Drupal\Core\
Entity\
Field\FieldItemListInterface,
* have to implement \Drupal\Core\Field\FieldItemListInterface,
* which builds upon typed data interfaces as well.
*
* When implementing this interface which extends Traversable, make sure to list
* IteratorAggregate or Iterator before this interface in the implements clause.
*
* @see \Drupal\Core\TypedData\TypedDataManager
* @see \Drupal\Core\
Entity\
Field\FieldItemListInterface
* @see \Drupal\Core\Field\FieldItemListInterface
*/
interface
ContentEntityInterface
extends
EntityInterface
,
RevisionableInterface
,
TranslatableInterface
,
ComplexDataInterface
{
...
...
core/lib/Drupal/Core/Entity/EntityAccessController.php
View file @
3ded2216
...
...
@@ -7,9 +7,9 @@
namespace
Drupal\Core\Entity
;
use
Drupal\Core\
Entity\
Field\FieldItemListInterface
;
use
Drupal\Core\Field\FieldItemListInterface
;
use
Drupal\Core\Extension\ModuleHandlerInterface
;
use
Drupal\Core\
Entity\
Field\FieldDefinitionInterface
;
use
Drupal\Core\Field\FieldDefinitionInterface
;
use
Drupal\Core\Language\Language
;
use
Drupal\Core\Session\AccountInterface
;
...
...
core/lib/Drupal/Core/Entity/EntityAccessControllerInterface.php
View file @
3ded2216
...
...
@@ -7,9 +7,9 @@
namespace
Drupal\Core\Entity
;
use
Drupal\Core\
Entity\
Field\FieldItemListInterface
;
use
Drupal\Core\Field\FieldItemListInterface
;
use
Drupal\Core\Extension\ModuleHandlerInterface
;
use
Drupal\Core\
Entity\
Field\FieldDefinitionInterface
;
use
Drupal\Core\Field\FieldDefinitionInterface
;
use
Drupal\Core\Language\Language
;
use
Drupal\Core\Session\AccountInterface
;
...
...
@@ -78,12 +78,12 @@ public function setModuleHandler(ModuleHandlerInterface $module_handler);
* @param string $operation
* The operation access should be checked for.
* Usually one of "view" or "edit".
* @param \Drupal\Core\
Entity\
Field\FieldDefinitionInterface $field_definition
* @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
* The field definition.
* @param \Drupal\Core\Session\AccountInterface $account
* (optional) The user session for which to check access, or NULL to check
* access for the current user. Defaults to NULL.
* @param \Drupal\Core\
Entity\
Field\FieldItemListInterface $items
* @param \Drupal\Core\Field\FieldItemListInterface $items
* (optional) The field values for which to check access, or NULL if access
* is checked for the field definition, without any specific value
* available. Defaults to NULL.
...
...
core/lib/Drupal/Core/Entity/FieldableEntityStorageControllerBase.php
View file @
3ded2216
...
...
@@ -7,10 +7,10 @@
namespace
Drupal\Core\Entity
;
use
Drupal\Core\
Entity\
Field\PrepareCacheInterface
;
use
Drupal\Core\Field\PrepareCacheInterface
;
use
Drupal\field\FieldInterface
;
use
Drupal\field\FieldInstanceInterface
;
use
Drupal\
field\Plugin\Type\FieldType
\ConfigFieldItemListInterface
;
use
Drupal\
Core\Field
\ConfigFieldItemListInterface
;
use
Symfony\Component\DependencyInjection\Container
;
abstract
class
FieldableEntityStorageControllerBase
extends
EntityStorageControllerBase
implements
FieldableEntityStorageControllerInterface
{
...
...
core/lib/Drupal/Core/Entity/Plugin/DataType/FieldItem.php
View file @
3ded2216
...
...
@@ -14,12 +14,12 @@
* Defines the base plugin for deriving data types for field types.
*
* Note that the class only register the plugin, and is actually never used.
* \Drupal\Core\
Entity\
Field\FieldItemBase is available for use as base class.
* \Drupal\Core\Field\FieldItemBase is available for use as base class.
*
* @DataType(
* id = "field_item",
* label = @Translation("Field item"),
* list_class = "\Drupal\Core\
Entity\
Field\FieldItemList",
* list_class = "\Drupal\Core\Field\FieldItemList",
* derivative = "Drupal\Core\Entity\Plugin\DataType\Deriver\FieldItemDeriver"
* )
*/
...
...
core/
modules/field/lib/Drupal/field/Plugin/Type/FieldType
/ConfigEntityReferenceItemBase.php
→
core/
lib/Drupal/Core/Field
/ConfigEntityReferenceItemBase.php
View file @
3ded2216
...
...
@@ -2,15 +2,14 @@
/**
* @file
* Contains \Drupal\
field\Plugin\Type\FieldType
\ConfigEntityReferenceItemBase.
* Contains \Drupal\
Core\Field
\ConfigEntityReferenceItemBase.
*/
namespace
Drupal\
field\Plugin\Type\FieldType
;
namespace
Drupal\
Core\Field
;
use
Drupal\Core\
Entity\Plugin\field\field_t
ype\EntityReferenceItem
;
use
Drupal\Core\
Field\Plugin\Field\FieldT
ype\EntityReferenceItem
;
use
Drupal\field\FieldInstanceInterface
;
use
Drupal\field\FieldInterface
;
use
Drupal\field\Plugin\Type\FieldType\ConfigFieldItemInterface
;
/**
* A common base class for configurable entity reference fields.
...
...
@@ -76,7 +75,7 @@ public function getPropertyDefinitions() {
/**
* {@inheritdoc}
*
* Copied from \Drupal\field\Plugin\
field\field_t
ype\LegacyConfigFieldItem,
* Copied from \Drupal\field\Plugin\
Field\FieldT
ype\LegacyConfigFieldItem,
* since we cannot extend it.
*/
public
static
function
schema
(
FieldInterface
$field
)
{
...
...
@@ -108,7 +107,7 @@ public function isEmpty() {
/**
* {@inheritdoc}
*
* Copied from \Drupal\field\Plugin\
field\field_t
ype\LegacyConfigFieldItem,
* Copied from \Drupal\field\Plugin\
Field\FieldT
ype\LegacyConfigFieldItem,
* since we cannot extend it.
*/
public
function
settingsForm
(
array
$form
,
array
&
$form_state
,
$has_data
)
{
...
...
@@ -127,7 +126,7 @@ public function settingsForm(array $form, array &$form_state, $has_data) {
/**
* {@inheritdoc}
*
* Copied from \Drupal\field\Plugin\
field\field_t
ype\LegacyConfigFieldItem,
* Copied from \Drupal\field\Plugin\
Field\FieldT
ype\LegacyConfigFieldItem,
* since we cannot extend it.
*/
public
function
instanceSettingsForm
(
array
$form
,
array
&
$form_state
)
{
...
...
@@ -161,7 +160,7 @@ public function getSettableOptions() {
/**
* Returns the legacy callback for a given field type "hook".
*
* Copied from \Drupal\field\Plugin\
field\field_t
ype\LegacyConfigFieldItem,
* Copied from \Drupal\field\Plugin\
Field\FieldT
ype\LegacyConfigFieldItem,
* since we cannot extend it.
*
* @param string $hook
...
...
core/
modules/field/lib/Drupal/field/Plugin/Type/FieldType
/ConfigFieldItemBase.php
→
core/
lib/Drupal/Core/Field
/ConfigFieldItemBase.php
View file @
3ded2216
...
...
@@ -2,12 +2,10 @@
/**
* @file
* Contains \Drupal\
field\Plugin\Type\FieldType
\ConfigFieldItemBase.
* Contains \Drupal\
Core\Field
\ConfigFieldItemBase.
*/
namespace
Drupal\field\Plugin\Type\FieldType
;
use
Drupal\Core\Entity\Field\FieldItemBase
;
namespace
Drupal\Core\Field
;
/**
* Base class for 'configurable field type' plugin implementations.
...
...
core/
modules/field/lib/Drupal/field/Plugin/Type/FieldType
/ConfigFieldItemInterface.php
→
core/
lib/Drupal/Core/Field
/ConfigFieldItemInterface.php
View file @
3ded2216
...
...
@@ -2,12 +2,11 @@
/**
* @file
* Contains \Drupal\
field\Plugin\Type\FieldType
\ConfigFieldItemInterface.
* Contains \Drupal\
Core\Field
\ConfigFieldItemInterface.
*/
namespace
Drupal\
field\Plugin\Type\FieldType
;
namespace
Drupal\
Core\Field
;
use
Drupal\Core\Entity\Field\FieldItemInterface
;
use
Drupal\field\FieldInterface
;
/**
...
...
core/
modules/field/lib/Drupal/field/Plugin/Type/FieldType
/ConfigFieldItemList.php
→
core/
lib/Drupal/Core/Field
/ConfigFieldItemList.php
View file @
3ded2216
...
...
@@ -2,14 +2,13 @@
/**
* @file
* Contains \Drupal\
field\Plugin\Type\FieldType
\ConfigFieldItemList.
* Contains \Drupal\
Core\Field
\ConfigFieldItemList.
*/
namespace
Drupal\
field\Plugin\Type\FieldType
;
namespace
Drupal\
Core\Field
;
use
Drupal\Core\TypedData\TypedDataInterface
;
use
Drupal\Core\Entity\Field\FieldItemList
;
use
Drupal\field\Field
as
FieldAPI
;
use
Drupal\field\Field
;
/**
* Represents a configurable entity field item list.
...
...
@@ -39,7 +38,7 @@ public function __construct(array $definition, $name = NULL, TypedDataInterface
public
function
getFieldDefinition
()
{
if
(
!
isset
(
$this
->
instance
))
{
$entity
=
$this
->
getEntity
();
$instances
=
Field
API
::
fieldInfo
()
->
getBundleInstances
(
$entity
->
entityType
(),
$entity
->
bundle
());
$instances
=
Field
::
fieldInfo
()
->
getBundleInstances
(
$entity
->
entityType
(),
$entity
->
bundle
());
if
(
isset
(
$instances
[
$this
->
getName
()]))
{
$this
->
instance
=
$instances
[
$this
->
getName
()];
}
...
...
core/
modules/field/lib/Drupal/field/Plugin/Type/FieldType
/ConfigFieldItemListInterface.php
→
core/
lib/Drupal/Core/Field
/ConfigFieldItemListInterface.php
View file @
3ded2216
...
...
@@ -2,12 +2,10 @@
/**
* @file
* Contains \Drupal\
field\Plugin\Type\FieldType
\ConfigFieldItemListInterface.
* Contains \Drupal\
Core\Field
\ConfigFieldItemListInterface.
*/
namespace
Drupal\field\Plugin\Type\FieldType
;
use
Drupal\Core\Entity\Field\FieldItemListInterface
;
namespace
Drupal\Core\Field
;
/**
* Interface definition for "configurable fields".
...
...
core/lib/Drupal/Core/
Entity/
Field/FieldDefinition.php
→
core/lib/Drupal/Core/Field/FieldDefinition.php
View file @
3ded2216
...
...
@@ -2,10 +2,11 @@
/**
* @file
* Contains \Drupal\Core\
Entity\
Field\FieldDefinition.
* Contains \Drupal\Core\Field\FieldDefinition.
*/
namespace
Drupal\Core\Entity\Field
;
namespace
Drupal\Core\Field
;
use
Drupal\Core\Entity\EntityInterface
;
/**
...
...
@@ -43,7 +44,7 @@ public function getFieldName() {
* @param string $name
* The field name to set.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setFieldName
(
$name
)
{
...
...
@@ -66,7 +67,7 @@ public function getFieldType() {
* @param string $type
* The field type to set.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setFieldType
(
$type
)
{
...
...
@@ -80,7 +81,7 @@ public function setFieldType($type) {
* @param string $type
* The field type to set.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setFieldSetting
(
$setting_name
,
$value
)
{
...
...
@@ -122,7 +123,7 @@ public function isFieldTranslatable() {
* @param bool $translatable
* Whether the field is translatable.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setTranslatable
(
$translatable
)
{
...
...
@@ -143,7 +144,7 @@ public function getFieldLabel() {
* @param string $label
* The field label to set.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setFieldLabel
(
$label
)
{
...
...
@@ -164,7 +165,7 @@ public function getFieldDescription() {
* @param string $description
* The field label to set.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setFieldDescription
(
$description
)
{
...
...
@@ -193,7 +194,7 @@ public function isFieldRequired() {
* @param bool $required
* TRUE if the field is required, FALSE otherwise.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setFieldRequired
(
$required
)
{
...
...
@@ -209,7 +210,7 @@ public function setFieldRequired($required) {
* @param array $constraints
* The constraints to set.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinition
* @return \Drupal\Core\Field\FieldDefinition
* The object itself for chaining.
*/
public
function
setPropertyConstraints
(
$name
,
array
$constraints
)
{
...
...
core/lib/Drupal/Core/
Entity/
Field/FieldDefinitionInterface.php
→
core/lib/Drupal/Core/Field/FieldDefinitionInterface.php
View file @
3ded2216
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\
Entity\
Field\FieldDefinitionInterface.
* Contains \Drupal\Core\Field\FieldDefinitionInterface.
*/
namespace
Drupal\Core\
Entity\
Field
;
namespace
Drupal\Core\Field
;
use
Drupal\Core\Entity\EntityInterface
;
...
...
@@ -13,7 +13,7 @@
* Defines an interface for entity field definitions.
*
* An entity field is a data object that holds the values of a particular field
* for a particular entity (see \Drupal\Core\
Entity\
Field\FieldItemListInterface). For
* for a particular entity (see \Drupal\Core\Field\FieldItemListInterface). For
* example, $node_1->body and $node_2->body contain different data and therefore
* are different field objects.
*
...
...
@@ -70,7 +70,7 @@ public function getFieldName();
* @return string
* The field type, i.e. the id of a field type plugin. For example 'text'.
*
* @see \Drupal\Core\
Entity\
Field\FieldTypePluginManager
* @see \Drupal\Core\Field\FieldTypePluginManager
*/
public
function
getFieldType
();
...
...
core/lib/Drupal/Core/
Entity/
Field/FieldItemBase.php
→
core/lib/Drupal/Core/Field/FieldItemBase.php
View file @
3ded2216
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\
Entity\
Field\FieldItemBase.
* Contains \Drupal\Core\Field\FieldItemBase.
*/
namespace
Drupal\Core\
Entity\
Field
;
namespace
Drupal\Core\Field
;
use
Drupal\Core\Entity\EntityInterface
;
use
Drupal\Core\TypedData\Plugin\DataType\Map
;
...
...
@@ -18,7 +18,7 @@
* Entity field items making use of this base class have to implement
* ComplexDataInterface::getPropertyDefinitions().
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface
* @see \Drupal\Core\Field\FieldItemInterface
*/
abstract
class
FieldItemBase
extends
Map
implements
FieldItemInterface
{
...
...
@@ -110,7 +110,7 @@ public function setValue($values, $notify = TRUE) {
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemInterface::__get().
*
{@inheritdoc}
*/
public
function
__get
(
$name
)
{
// There is either a property object or a plain value - possibly for a
...
...
@@ -144,7 +144,7 @@ public function set($property_name, $value, $notify = TRUE) {
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemInterface::__set().
*
{@inheritdoc}
*/
public
function
__set
(
$name
,
$value
)
{
// Support setting values via property objects, but take care in as the
...
...
@@ -156,14 +156,14 @@ public function __set($name, $value) {
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemInterface::__isset().
*
{@inheritdoc}
*/
public
function
__isset
(
$name
)
{
return
isset
(
$this
->
values
[
$name
])
||
(
isset
(
$this
->
properties
[
$name
])
&&
$this
->
properties
[
$name
]
->
getValue
()
!==
NULL
);
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemInterface::__unset().
*
{@inheritdoc}
*/
public
function
__unset
(
$name
)
{
$this
->
set
(
$name
,
NULL
);
...
...
core/lib/Drupal/Core/
Entity/
Field/FieldItemInterface.php
→
core/lib/Drupal/Core/Field/FieldItemInterface.php
View file @
3ded2216
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\
Entity\
Field\FieldItemInterface.
* Contains \Drupal\Core\Field\FieldItemInterface.
*/
namespace
Drupal\Core\
Entity\
Field
;
namespace
Drupal\Core\Field
;
use
Drupal\Core\TypedData\ComplexDataInterface
;
...
...
@@ -18,8 +18,8 @@
* When implementing this interface which extends Traversable, make sure to list
* IteratorAggregate or Iterator before this interface in the implements clause.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemListInterface
* @see \Drupal\Core\
Entity\
Field\FieldItemBase
* @see \Drupal\Core\Field\FieldItemListInterface
* @see \Drupal\Core\Field\FieldItemBase
*/
interface
FieldItemInterface
extends
ComplexDataInterface
{
...
...
@@ -42,7 +42,7 @@ public function getLangcode();
/**
* Gets the field definition.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinitionInterface
* @return \Drupal\Core\Field\FieldDefinitionInterface
* The field definition.
*/
public
function
getFieldDefinition
();
...
...
core/lib/Drupal/Core/
Entity/
Field/FieldItemList.php
→
core/lib/Drupal/Core/Field/FieldItemList.php
View file @
3ded2216
...
...
@@ -2,12 +2,11 @@
/**
* @file
* Contains \Drupal\Core\
Entity\
Field\FieldItemList.
* Contains \Drupal\Core\Field\FieldItemList.
*/
namespace
Drupal\Core\
Entity\
Field
;
namespace
Drupal\Core\Field
;
use
Drupal\Core\Entity\Field\FieldItemListInterface
;
use
Drupal\Core\Session\AccountInterface
;
use
Drupal\Core\TypedData\TypedDataInterface
;
use
Drupal\Core\TypedData\ItemList
;
...
...
@@ -146,49 +145,49 @@ public function setValue($values, $notify = TRUE) {
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemListInterface::getPropertyDefinition().
*
{@inheritdoc}
*/
public
function
getPropertyDefinition
(
$name
)
{
return
$this
->
offsetGet
(
0
)
->
getPropertyDefinition
(
$name
);
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemListInterface::getPropertyDefinitions().
*
{@inheritdoc}
*/
public
function
getPropertyDefinitions
()
{
return
$this
->
offsetGet
(
0
)
->
getPropertyDefinitions
();
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemListInterface::__get().
*
{@inheritdoc}
*/
public
function
__get
(
$property_name
)
{
return
$this
->
offsetGet
(
0
)
->
__get
(
$property_name
);
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemListInterface::get().
*
{@inheritdoc}
*/
public
function
get
(
$property_name
)
{
return
$this
->
offsetGet
(
0
)
->
get
(
$property_name
);
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemListInterface::__set().
*
{@inheritdoc}
*/
public
function
__set
(
$property_name
,
$value
)
{
$this
->
offsetGet
(
0
)
->
__set
(
$property_name
,
$value
);
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemListInterface::__isset().
*
{@inheritdoc}
*/
public
function
__isset
(
$property_name
)
{
return
$this
->
offsetGet
(
0
)
->
__isset
(
$property_name
);
}
/**
*
Implements \Drupal\Core\Entity\Field\FieldItemListInterface::__unset().
*
{@inheritdoc}
*/
public
function
__unset
(
$property_name
)
{
return
$this
->
offsetGet
(
0
)
->
__unset
(
$property_name
);
...
...
core/lib/Drupal/Core/
Entity/
Field/FieldItemListInterface.php
→
core/lib/Drupal/Core/Field/FieldItemListInterface.php
View file @
3ded2216
...
...
@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\Core\
Entity\
Field\FieldItemListInterface.
* Contains \Drupal\Core\Field\FieldItemListInterface.
*/
namespace
Drupal\Core\
Entity\
Field
;
namespace
Drupal\Core\Field
;
use
Drupal\Core\Session\AccountInterface
;
use
Drupal\Core\Access\AccessibleInterface
;
...
...
@@ -55,7 +55,7 @@ public function getLangcode();
/**
* Gets the field definition.
*
* @return \Drupal\Core\
Entity\
Field\FieldDefinitionInterface
* @return \Drupal\Core\Field\FieldDefinitionInterface
* The field definition.
*/
public
function
getFieldDefinition
();
...
...
@@ -79,49 +79,49 @@ public function filterEmptyValues();
/**
* Gets a property object from the first field item.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface::get()
* @see \Drupal\Core\Field\FieldItemInterface::get()
*/
public
function
get
(
$property_name
);
/**
* Magic method: Gets a property value of to the first field item.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface::__get()
* @see \Drupal\Core\Field\FieldItemInterface::__get()
*/
public
function
__get
(
$property_name
);
/**
* Magic method: Sets a property value of the first field item.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface::__set()
* @see \Drupal\Core\Field\FieldItemInterface::__set()
*/
public
function
__set
(
$property_name
,
$value
);
/**
* Magic method: Determines whether a property of the first field item is set.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface::__isset()
* @see \Drupal\Core\Field\FieldItemInterface::__isset()
*/
public
function
__isset
(
$property_name
);
/**
* Magic method: Unsets a property of the first field item.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface::__unset()
* @see \Drupal\Core\Field\FieldItemInterface::__unset()
*/
public
function
__unset
(
$property_name
);
/**
* Gets the definition of a property of the first field item.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface::getPropertyDefinition()
* @see \Drupal\Core\Field\FieldItemInterface::getPropertyDefinition()
*/
public
function
getPropertyDefinition
(
$name
);
/**
* Gets an array of property definitions of the first field item.
*
* @see \Drupal\Core\
Entity\
Field\FieldItemInterface::getPropertyDefinitions()
* @see \Drupal\Core\Field\FieldItemInterface::getPropertyDefinitions()
*/
public
function
getPropertyDefinitions
();
...
...
core/lib/Drupal/Core/Field/FieldTypePluginManager.php
View file @
3ded2216
...
...
@@ -11,7 +11,6 @@
use
Drupal\Core\Extension\ModuleHandlerInterface
;
use
Drupal\Core\Language\LanguageManager
;
use
Drupal\Core\Plugin\DefaultPluginManager
;
use
Drupal\field\Plugin\Type\FieldType\LegacyFieldTypeDiscoveryDecorator
;
/**
* Plugin manager for 'field type' plugins.
...
...
@@ -40,7 +39,7 @@ class FieldTypePluginManager extends DefaultPluginManager {
* The module handler.
*/
public
function
__construct
(
\Traversable
$namespaces
,
CacheBackendInterface
$cache_backend
,
LanguageManager
$language_manager
,
ModuleHandlerInterface
$module_handler
)
{
parent
::
__construct
(
'Plugin/
field/field_t
ype'
,
$namespaces
,
'Drupal\Core\Field\Annotation\FieldType'
);
parent
::
__construct
(
'Plugin/
Field/FieldT
ype'
,
$namespaces
,
'Drupal\Core\Field\Annotation\FieldType'
);
$this
->
alterInfo
(
$module_handler
,
'field_info'
);
$this
->
setCacheBackend
(
$cache_backend
,
$language_manager
,
'field_types_plugins'
);
...
...
@@ -56,10 +55,10 @@ public function processDefinition(&$definition, $plugin_id) {
parent
::
processDefinition
(
$definition
,
$plugin_id
);
if
(
!
isset
(
$definition
[
'list_class'
]))
{
if
(
$definition
[
'configurable'
])
{
$definition
[
'list_class'
]
=
'\Drupal\
field\Plugin\Type\FieldType
\ConfigFieldItemList'
;
$definition
[
'list_class'
]
=
'\Drupal\
Core\Field
\ConfigFieldItemList'
;
}
else
{
$definition
[
'list_class'
]
=
'\Drupal\Core\
Entity\
Field\FieldItemList'
;
$definition
[
'list_class'
]
=
'\Drupal\Core\Field\FieldItemList'
;
}
}
}
...
...
core/lib/Drupal/Core/Field/FormatterBase.php
View file @
3ded2216
...
...
@@ -7,10 +7,6 @@
namespace
Drupal\Core\Field
;
use
Drupal\Core\Entity\Field\FieldDefinitionInterface
;
use
Drupal\Core\Entity\Field\FieldItemListInterface
;
use
Drupal\field\Plugin\PluginSettingsBase
;
/**
* Base class for 'Field formatter' plugin implementations.
*/
...
...
@@ -19,7 +15,7 @@ abstract class FormatterBase extends PluginSettingsBase implements FormatterInte
/**
* The field definition.
*
* @var \Drupal\Core\
Entity\
Field\FieldDefinitionInterface
* @var \Drupal\Core\Field\FieldDefinitionInterface
*/
protected
$fieldDefinition
;
...
...
@@ -51,7 +47,7 @@ abstract class FormatterBase extends PluginSettingsBase implements FormatterInte
* The plugin_id for the formatter.
* @param array $plugin_definition
* The plugin implementation definition.
* @param \Drupal\Core\
Entity\
Field\FieldDefinitionInterface $field_definition
* @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
* The definition of the field to which the formatter is associated.
* @param array $settings
* The formatter settings.
...
...
core/lib/Drupal/Core/Field/FormatterInterface.php
View file @
3ded2216
...
...
@@ -7,9 +7,6 @@
namespace
Drupal\Core\Field
;
use
Drupal\Core\Entity\Field\FieldItemListInterface
;
use
Drupal\field\Plugin\PluginSettingsInterface
;
/**