You are here

function realistic_dummy_content_api_entity_presave in Realistic Dummy Content 8

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

Implements hook_entity_insert().

File

api/realistic_dummy_content_api.module, line 15
API code allowing other modules to generate realistic dummy content. See the Realistic Dummy Content module for an example of how to use.

Code

function realistic_dummy_content_api_entity_presave(\Drupal\Core\Entity\EntityInterface $entity) {
  $return = RealisticDummyContent::entity_presave($entity);
  return $return;
}