function RecipeIsApplyingTestHooks::entityTestInsert
Implements hook_ENTITY_TYPE_insert() for entity_test entities.
Attributes
#[Hook('entity_test_insert')]
File
-
core/
modules/ system/ tests/ modules/ recipe_is_applying_test/ src/ Hook/ RecipeIsApplyingTestHooks.php, line 39
Class
- RecipeIsApplyingTestHooks
- Hook implementations for recipe_is_applying_test.
Namespace
Drupal\recipe_is_applying_test\HookCode
public function entityTestInsert(EntityInterface $entity) : void {
$this->keyValueFactory
->get('recipe_is_applying_test')
->set('entity_test_insert', RecipeRunner::isApplying());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.