You are here

public function Framework::hookEntityPresave in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::hookEntityPresave()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::hookEntityPresave()

React to an entity just before it is saved.

Overrides FrameworkInterface::hookEntityPresave

1 method overrides Framework::hookEntityPresave()
Drupal8::hookEntityPresave in api/src/Framework/Drupal8.php
React to an entity just before it is saved.

File

api/src/Framework/Framework.php, line 236

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function hookEntityPresave($entity) {
  $return = self::implementor()
    ->hookEntityPresave($entity);
  static::addTestFlag('hookEntityPresave called');
  return $return;
}