function RecipeEventsTest::onRecipeApply

Same name in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php \Drupal\KernelTests\Core\Recipe\RecipeEventsTest::onRecipeApply()

File

core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php, line 35

Class

RecipeEventsTest
@group Recipe

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.