function FieldItemBase::generateSampleValue

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::generateSampleValue()
  2. 10 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::generateSampleValue()
  3. 11.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::generateSampleValue()

Overrides FieldItemInterface::generateSampleValue

18 methods override FieldItemBase::generateSampleValue()
BooleanItem::generateSampleValue in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
Generates placeholder field values.
CommentItem::generateSampleValue in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Generates placeholder field values.
DateTimeItem::generateSampleValue in core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php
Generates placeholder field values.
DecimalItem::generateSampleValue in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
Generates placeholder field values.
EmailItem::generateSampleValue in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EmailItem.php
Generates placeholder field values.

... See full list

File

core/lib/Drupal/Core/Field/FieldItemBase.php, line 209

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
}

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