You are here

function entity_test_entity_revision_create in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_revision_create()
  2. 10 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_entity_revision_create()

Implements hook_entity_revision_create().

File

core/modules/system/tests/modules/entity_test/entity_test.module, line 714
Test module for the entity API providing several entity types for testing.

Code

function entity_test_entity_revision_create(EntityInterface $new_revision, EntityInterface $entity, $keep_untranslatable_fields) {
  _entity_test_record_hooks('entity_revision_create', [
    'new_revision' => $new_revision,
    'entity' => $entity,
    'keep_untranslatable_fields' => $keep_untranslatable_fields,
  ]);
}