Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocaleEvents.php

class LocaleEvents

Defines events for locale translation.

Hierarchy

  • class \Drupal\locale\LocaleEvents

Expanded class hierarchy of LocaleEvents

See also

\Drupal\Core\Config\ConfigCrudEvent

2 files declare their use of LocaleEvents
locale.module in core/modules/locale/locale.module
LocaleTranslationCacheTag.php in core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php

File

core/modules/locale/src/LocaleEvents.php, line 10

Namespace

Drupal\locale
View source
final class LocaleEvents {
    
    /**
     * The name of the event fired when saving a translated string.
     *
     * This event allows you to perform custom actions whenever a translated
     * string is saved.
     *
     * @Event
     *
     * @see \Drupal\locale\EventSubscriber\LocaleTranslationCacheTag
     */
    const SAVE_TRANSLATION = 'locale.save_translation';

}

Members

Title Sort descending Modifiers Object type Summary
LocaleEvents::SAVE_TRANSLATION constant The name of the event fired when saving a translated string.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal