class RecipeAppliedEvent

Same name in other branches
  1. 10 core/lib/Drupal/Core/Recipe/RecipeAppliedEvent.php \Drupal\Core\Recipe\RecipeAppliedEvent

Event dispatched after a recipe has been applied.

Subscribers to this event should avoid modifying config or content, because it is very likely that the recipe was applied as part of a chain of recipes, so config and content are probably about to change again. This event is best used for tasks like notifications, logging or updating a value in state.

Hierarchy

  • class \Drupal\Core\Recipe\RecipeAppliedEvent extends \Symfony\Contracts\EventDispatcher\Event

Expanded class hierarchy of RecipeAppliedEvent

1 file declares its use of RecipeAppliedEvent
RecipeEventsTest.php in core/tests/Drupal/KernelTests/Core/Recipe/RecipeEventsTest.php

File

core/lib/Drupal/Core/Recipe/RecipeAppliedEvent.php, line 17

Namespace

Drupal\Core\Recipe
View source
final class RecipeAppliedEvent extends Event {
    
    /**
     * Constructs a RecipeAppliedEvent object.
     *
     * @param \Drupal\Core\Recipe\Recipe $recipe
     *   The recipe that was applied.
     */
    public function __construct(Recipe $recipe) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
RecipeAppliedEvent::__construct public function Constructs a RecipeAppliedEvent object.

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