Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RecipeAppliedEvent.php

class 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 \Symfony\Contracts\EventDispatcher\Event implements \Psr\EventDispatcher\StoppableEventInterface
    • class \Drupal\Core\Recipe\RecipeAppliedEvent extends \Symfony\Contracts\EventDispatcher\Event

Expanded class hierarchy of RecipeAppliedEvent

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 Overriden Title Overrides
Event::$propagationStopped private property
Event::isPropagationStopped public function Is propagation stopped? Overrides StoppableEventInterface::isPropagationStopped
Event::stopPropagation public function Stops the propagation of the event to further event listeners. 1
RecipeAppliedEvent::__construct public function Constructs a RecipeAppliedEvent object.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal