You are here

class LanguageConfigOverrideCrudEvent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php \Drupal\language\Config\LanguageConfigOverrideCrudEvent

Provides a language override event for event listeners.

Hierarchy

Expanded class hierarchy of LanguageConfigOverrideCrudEvent

See also

\Drupal\Core\Config\ConfigCrudEvent

1 file declares its use of LanguageConfigOverrideCrudEvent
LocaleConfigSubscriber.php in core/modules/locale/src/LocaleConfigSubscriber.php
Contains \Drupal\locale\LocaleConfigSubscriber.

File

core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php, line 17
Contains \Drupal\language\Config\LanguageConfigOverrideCrudEvent.

Namespace

Drupal\language\Config
View source
class LanguageConfigOverrideCrudEvent extends Event {

  /**
   * Configuration object.
   *
   * @var \Drupal\language\Config\LanguageConfigOverride
   */
  protected $override;

  /**
   * Constructs a configuration event object.
   *
   * @param \Drupal\language\Config\LanguageConfigOverride $override
   *   Configuration object.
   */
  public function __construct(LanguageConfigOverride $override) {
    $this->override = $override;
  }

  /**
   * Gets configuration object.
   *
   * @return \Drupal\language\Config\LanguageConfigOverride
   *   The configuration object that caused the event to fire.
   */
  public function getLanguageConfigOverride() {
    return $this->override;
  }

}

Members

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