EntityReferenceItemSubclass.php
Same filename in other branches
Namespace
Drupal\media_library_test\Plugin\Field\FieldTypeFile
-
core/
modules/ media_library/ tests/ modules/ media_library_test/ src/ Plugin/ Field/ FieldType/ EntityReferenceItemSubclass.php
View source
<?php
namespace Drupal\media_library_test\Plugin\Field\FieldType;
use Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem;
/**
* Plugin implementation of the 'entity_reference_subclass' field type.
*
* @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"
* )
*/
class EntityReferenceItemSubclass extends EntityReferenceItem {
}
Classes
Title | Deprecated | Summary |
---|---|---|
EntityReferenceItemSubclass | Plugin implementation of the 'entity_reference_subclass' field type. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.