Skip to content
Snippets Groups Projects
Commit 6c91bb77 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2427001 by chx: field item presave is only called for SQL

parent de5d27e6
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,16 @@ protected function invokeTranslationHooks(ContentEntityInterface $entity) {
}
}
/**
* {@inheritdoc}
*/
protected function invokeHook($hook, EntityInterface $entity) {
if ($hook == 'presave') {
$this->invokeFieldMethod('preSave', $entity);
}
parent::invokeHook($hook, $entity);
}
/**
* Invokes a method on the Field objects within an entity.
*
......
......@@ -1055,16 +1055,6 @@ protected function savePropertyData(EntityInterface $entity, $table_name = NULL)
$query->execute();
}
/**
* {@inheritdoc}
*/
protected function invokeHook($hook, EntityInterface $entity) {
if ($hook == 'presave') {
$this->invokeFieldMethod('preSave', $entity);
}
parent::invokeHook($hook, $entity);
}
/**
* Maps from an entity object to the storage record.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment