locale_config_batch_build

locale_config_batch_build(array $names, array $langcodes, array $options = array()) Creates a locale batch to refresh specific configuration. Parameters array $names: List of configuration object names (which are strings) to update. array $langcodes: List of language codes to refresh. array $options: (optional) An array with options that can have the following elements: 'finish_feedback': Whether or not to give feedback to the user when the batch is finished. Defaults to TRUE. Return value

locale_configurable_language_update

locale_configurable_language_update(ConfigurableLanguageInterface $language) Implements hook_ENTITY_TYPE_update() for 'configurable_language'. File core/modules/locale/locale.module, line 212 Enables the translation of the user interface to languages other than English. Code function locale_configurable_language_update(ConfigurableLanguageInterface $language) { // @todo move these two cache clears out. See // https://www.drupal.org/node/1293252. // Changing the language settings impac

locale_configurable_language_insert

locale_configurable_language_insert(ConfigurableLanguageInterface $language) Implements hook_ENTITY_TYPE_insert() for 'configurable_language'. File core/modules/locale/locale.module, line 200 Enables the translation of the user interface to languages other than English. Code function locale_configurable_language_insert(ConfigurableLanguageInterface $language) { // @todo move these two cache clears out. See // https://www.drupal.org/node/1293252. // Changing the language settings impac

locale_configurable_language_delete

locale_configurable_language_delete(ConfigurableLanguageInterface $language) Implements hook_ENTITY_TYPE_delete() for 'configurable_language'. File core/modules/locale/locale.module, line 224 Enables the translation of the user interface to languages other than English. Code function locale_configurable_language_delete(ConfigurableLanguageInterface $language) { // Remove translations. \Drupal::service('locale.storage')->deleteTranslations(array('language' => $language->id()));

locale_cache_flush

locale_cache_flush() Implements hook_cache_flush(). File core/modules/locale/locale.module, line 480 Enables the translation of the user interface to languages other than English. Code function locale_cache_flush() { \Drupal::state()->delete('system.javascript_parsed'); }

LocaleTranslationCacheTag::__construct

public LocaleTranslationCacheTag::__construct(CacheTagsInvalidatorInterface $cache_tags_invalidator) Constructs a LocaleTranslationCacheTag object. Parameters \Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator. File core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php, line 27 Class LocaleTranslationCacheTag A subscriber invalidating cache tags when translating a string. Namespace Drupal\locale\EventSubscriber Code pub

LocaleTranslationCacheTag::saveTranslation

public LocaleTranslationCacheTag::saveTranslation() Invalidate cache tags whenever a string is translated. File core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php, line 34 Class LocaleTranslationCacheTag A subscriber invalidating cache tags when translating a string. Namespace Drupal\locale\EventSubscriber Code public function saveTranslation() { $this->cacheTagsInvalidator->invalidateTags(['rendered', 'locale']); }

LocaleTranslationCacheTag::getSubscribedEvents

public static LocaleTranslationCacheTag::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priori

LocaleTranslationCacheTag::$cacheTagsInvalidator

The cache tags invalidator. Type: \Drupal\Core\Cache\CacheTagsInvalidatorInterface File core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php, line 19 Class LocaleTranslationCacheTag A subscriber invalidating cache tags when translating a string. Namespace Drupal\locale\EventSubscriber Code protected $cacheTagsInvalidator;

LocaleTranslationCacheTag

A subscriber invalidating cache tags when translating a string. Hierarchy class \Drupal\locale\EventSubscriber\LocaleTranslationCacheTag implements EventSubscriberInterface File core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php, line 12 Namespace Drupal\locale\EventSubscriber Members Name Modifiers Type Description LocaleTranslationCacheTag::$cacheTagsInvalidator protected property The cache tags invalidator. LocaleTranslationCacheTag::getSubscribed