LanguageConfigOverrideEvents.php

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

Namespace

Drupal\language\Config

File

core/modules/language/src/Config/LanguageConfigOverrideEvents.php

View source
<?php

namespace Drupal\language\Config;


/**
 * Defines events for language configuration overrides.
 *
 * @see \Drupal\Core\Config\ConfigCrudEvent
 */
final class LanguageConfigOverrideEvents {
    
    /**
     * The name of the event fired when saving the configuration override.
     *
     * This event allows you to perform custom actions whenever a language config
     * override is saved. The event listener method receives a
     * \Drupal\language\Config\LanguageConfigOverrideCrudEvent instance.
     *
     * @Event
     *
     * @see \Drupal\language\Config\LanguageConfigOverrideCrudEvent
     * @see \Drupal\language\Config\LanguageConfigOverride::save()
     * @see \Drupal\locale\LocaleConfigSubscriber
     */
    const SAVE_OVERRIDE = 'language.save_override';
    
    /**
     * The name of the event fired when deleting the configuration override.
     *
     * This event allows you to perform custom actions whenever a language config
     * override is deleted. The event listener method receives a
     * \Drupal\language\Config\LanguageConfigOverrideCrudEvent instance.
     *
     * @Event
     *
     * @see \Drupal\language\Config\LanguageConfigOverrideCrudEvent
     * @see \Drupal\language\Config\LanguageConfigOverride::delete()
     * @see \Drupal\locale\LocaleConfigSubscriber
     */
    const DELETE_OVERRIDE = 'language.delete_override';

}

Classes

Title Deprecated Summary
LanguageConfigOverrideEvents Defines events for language configuration overrides.

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