Version 1
[yaffs-website] / web / core / modules / locale / src / LocaleEvents.php
diff --git a/web/core/modules/locale/src/LocaleEvents.php b/web/core/modules/locale/src/LocaleEvents.php
new file mode 100644 (file)
index 0000000..f168f16
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace Drupal\locale;
+
+/**
+ * Defines events for locale translation.
+ *
+ * @see \Drupal\Core\Config\ConfigCrudEvent
+ */
+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';
+
+}