You are here

function realistic_dummy_content_api_entity_presave in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()
  2. 8 api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()
  3. 7.2 api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()
  4. 7 api/realistic_dummy_content_api.module \realistic_dummy_content_api_entity_presave()

Implements hook_entity_presave().

File

api/realistic_dummy_content_api.module, line 112
API code allowing other modules to generate realistic dummy content.

Code

function realistic_dummy_content_api_entity_presave($entity) {
  try {
    Framework::instance()
      ->hookEntityPresave($entity);
  } catch (\Throwable $e) {
    drupal_set_message($e
      ->getMessage());
  }
}