class EntityReferenceItemBase

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php \Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItemBase

Base class for field items referencing other entities.

Any field type that is an entity reference should extend from this class in order to remain backwards compatible with any changes added in the future to EntityReferenceItemInterface.

Hierarchy

Expanded class hierarchy of EntityReferenceItemBase

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItemBase.php, line 14

Namespace

Drupal\Core\Field\Plugin\Field\FieldType
View source
abstract class EntityReferenceItemBase extends FieldItemBase implements EntityReferenceItemInterface {

}

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