class ConfigEvent

Hierarchy

  • class \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of ConfigEvent

4 files declare their use of ConfigEvent

File

drupal/core/lib/Drupal/Core/Config/ConfigEvent.php, line 8

Namespace

Drupal\Core\Config
View source
class ConfigEvent extends Event {

  /**
   * Configuration object.
   *
   * @var Drupal\Core\Config\Config
   */
  protected $config;

  /**
   * Configuration context object.
   *
   * @var \Drupal\Core\Config\Context\ContextInterface
   */
  protected $context;

  /**
   * Constructs a configuration event object.
   *
   * @param \Drupal\Core\Config\Context\ContextInterface
   *   Configuration context object.
   * @param \Drupal\Core\Config\Config
   *   (optional) Configuration object.
   */
  public function __construct(ContextInterface $context, Config $config = NULL) {
    $this->config = $config;
    $this->context = $context;
  }

  /**
   * Get configuration object.
   */
  public function getConfig() {
    return $this->config;
  }

  /**
   * Gets configuration context object.
   *
   * @return \Drupal\Core\Config\Context\ContextInterface
   *   Configuration context.
   */
  public function getContext() {
    return $this->context;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigEvent::$config protected property Configuration object.
ConfigEvent::$context protected property Configuration context object.
ConfigEvent::getConfig public function Get configuration object.
ConfigEvent::getContext public function Gets configuration context object.
ConfigEvent::__construct public function Constructs a configuration event object.
Event::$dispatcher private property
Event::$name private property
Event::$propagationStopped private property
Event::getDispatcher public function Returns the EventDispatcher that dispatches this Event
Event::getName public function Gets the event's name.
Event::isPropagationStopped public function Returns whether further event listeners should be triggered.
Event::setDispatcher public function Stores the EventDispatcher that dispatches this Event
Event::setName public function Sets the event's name property.
Event::stopPropagation public function Stops the propagation of the event to further event listeners.