You are here

EntityReferenceItemSubclass.php in Drupal 10

File

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

Namesort descending Description
EntityReferenceItemSubclass Plugin implementation of the 'entity_reference_subclass' field type.