function RecipeEventsTest::onRecipeApply

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php \Drupal\KernelTests\Core\Recipe\RecipeEventsTest::onRecipeApply()
  2. 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\Recipe

Code

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.