function EntityTestHooks::entityRevisionCreate

Implements hook_entity_revision_create().

File

core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php, line 546

Class

EntityTestHooks
Hook implementations for entity_test.

Namespace

Drupal\entity_test\Hook

Code

public function entityRevisionCreate(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,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.