function FieldItemBase::preSave

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

Overrides FieldItemInterface::preSave

3 calls to FieldItemBase::preSave()
AutoIncrementingTestItem::preSave in core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/AutoIncrementingTestItem.php
Defines custom presave behavior for field values.
ChangedItem::preSave in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/ChangedItem.php
Defines custom presave behavior for field values.
PasswordItem::preSave in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/PasswordItem.php
Defines custom presave behavior for field values.
7 methods override FieldItemBase::preSave()
AutoIncrementingTestItem::preSave in core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/AutoIncrementingTestItem.php
Defines custom presave behavior for field values.
ChangedItem::preSave in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/ChangedItem.php
Defines custom presave behavior for field values.
DecimalItem::preSave in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
Defines custom presave behavior for field values.
EntityReferenceItem::preSave in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php
Defines custom presave behavior for field values.
FieldTestItem::preSave in core/modules/system/tests/modules/entity_test/src/Plugin/Field/FieldType/FieldTestItem.php
Defines custom presave behavior for field values.

... See full list

File

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

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public function preSave() {
}

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