public function FieldItemListInterface::preSave in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::preSave()
- 10 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\FieldCode
public function preSave();