You are here

abstract class FieldItem in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php \Drupal\Core\Field\Plugin\DataType\FieldItem

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\Field\FieldItemBase is available for use as base class.

Plugin annotation


@DataType(
  id = "field_item",
  label = @Translation("Field item"),
  list_class = "\Drupal\Core\Field\FieldItemList",
  deriver = "Drupal\Core\Field\Plugin\DataType\Deriver\FieldItemDeriver"
)

Hierarchy

  • class \Drupal\Core\Field\Plugin\DataType\FieldItem

Expanded class hierarchy of FieldItem

File

core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php, line 18

Namespace

Drupal\Core\Field\Plugin\DataType
View source
abstract class FieldItem {

}

Members