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

Breadcrumb

  1. Drupal Core 11.1.x

RecipeAppliedEvent.php

Namespace

Drupal\Core\Recipe

File

core/lib/Drupal/Core/Recipe/RecipeAppliedEvent.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Recipe;

use Symfony\Contracts\EventDispatcher\Event;

/**
 * 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.
 */
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) {
    }

}

Classes

Title Deprecated Summary
RecipeAppliedEvent Event dispatched after a recipe has been applied.

API Navigation

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