FieldItem.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php
  2. 8.9.x core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php
  3. 10 core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php

Namespace

Drupal\Core\Field\Plugin\DataType

File

core/lib/Drupal/Core/Field/Plugin/DataType/FieldItem.php

View source
<?php

namespace Drupal\Core\Field\Plugin\DataType;

use Drupal\Core\Field\FieldItemList;
use Drupal\Core\Field\Plugin\DataType\Deriver\FieldItemDeriver;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\TypedData\Attribute\DataType;

/**
 * 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.
 */
abstract class FieldItem {

}

Classes

Title Deprecated Summary
FieldItem Defines the base plugin for deriving data types for field types.

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