class EntityReferenceItemSubclass

Same name and namespace in other branches
  1. 10 core/modules/media_library/tests/modules/media_library_test/src/Plugin/Field/FieldType/EntityReferenceItemSubclass.php \Drupal\media_library_test\Plugin\Field\FieldType\EntityReferenceItemSubclass
  2. 11.x core/modules/media_library/tests/modules/media_library_test/src/Plugin/Field/FieldType/EntityReferenceItemSubclass.php \Drupal\media_library_test\Plugin\Field\FieldType\EntityReferenceItemSubclass

Plugin implementation of the 'entity_reference_subclass' field type.

Plugin annotation


@FieldType(
  id = "entity_reference_subclass",
  label = @Translation("Entity reference subclass"),
  description = @Translation("An entity field containing an entity reference."),
  category = @Translation("Reference"),
  default_widget = "entity_reference_autocomplete",
  default_formatter = "entity_reference_label",
  list_class = "\Drupal\Core\Field\EntityReferenceFieldItemList"
)

Hierarchy

Expanded class hierarchy of EntityReferenceItemSubclass

File

core/modules/media_library/tests/modules/media_library_test/src/Plugin/Field/FieldType/EntityReferenceItemSubclass.php, line 20

Namespace

Drupal\media_library_test\Plugin\Field\FieldType
View source
class EntityReferenceItemSubclass extends EntityReferenceItem {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.