function RecipeEventsTest::onRecipeApply
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php \Drupal\KernelTests\Core\Recipe\RecipeEventsTest::onRecipeApply()
- 10 core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php \Drupal\KernelTests\Core\Recipe\RecipeEventsTest::onRecipeApply()
Handles a recipe apply event for testing.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeEventsTest.php, line 42
Class
- RecipeEventsTest
- Tests Recipe Events.
Namespace
Drupal\KernelTests\Core\RecipeCode
public function onRecipeApply(RecipeAppliedEvent $event) : void {
$this->recipesApplied[] = $event->recipe->name;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.