You are here

public function FormatterTypeBase::preSave in Custom Formatters 8.3

Acts on a saved entity before the insert or update hook is invoked.

Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed.

File

src/FormatterTypeBase.php, line 66

Class

FormatterTypeBase
Class FormatterTypeBase.

Namespace

Drupal\custom_formatters

Code

public function preSave() {
}