1 EntityReferenceBehaviorHandler.inc public EntityReferenceBehaviorHandler::presave($entity_type, $entity, $field, $instance, $langcode, &$items)

Act on pre-saving an entity reference field.

Overrides EntityReferenceBehaviorHandlerInterface::presave

See also

hook_field_presave()

File

core/modules/entityreference/plugins/behavior/EntityReferenceBehaviorHandler.inc, line 178

Class

EntityReferenceBehaviorHandler
An abstract implementation of EntityReferenceBehaviorHandlerInterface.

Code

public function presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
}