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\RecipeView 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. |