LanguageConfigOverrideCrudEvent.php

Same filename in other branches
  1. 9 core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php
  2. 8.9.x core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php
  3. 10 core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php

Namespace

Drupal\language\Config

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

Title Deprecated Summary
LanguageConfigOverrideCrudEvent Provides a language override event for event listeners.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.