You are here

LanguageConfigOverrideCrudEvent.php in Drupal 9

File

core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php
View source
<?php

namespace Drupal\language\Config;

use Drupal\Component\EventDispatcher\Event;

/**
 * Provides a language override event for event listeners.
 *
 * @see \Drupal\Core\Config\ConfigCrudEvent
 */
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;
  }

}

Classes

Namesort descending Description
LanguageConfigOverrideCrudEvent Provides a language override event for event listeners.