function FieldItemListInterface::preSave

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

Defines custom presave behavior for field values.

This method is called during the process of saving an entity, just before item values are written into storage.

See also

\Drupal\Core\Field\FieldItemInterface::preSave()

1 method overrides FieldItemListInterface::preSave()
FieldItemList::preSave in core/lib/Drupal/Core/Field/FieldItemList.php
Defines custom presave behavior for field values.

File

core/lib/Drupal/Core/Field/FieldItemListInterface.php, line 138

Class

FieldItemListInterface
Interface for fields, being lists of field items.

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.