function LocaleThemeHooks::theme
Implements hook_theme().
Attributes
#[Hook('theme')]
File
-
core/
modules/ locale/ src/ Hook/ LocaleThemeHooks.php, line 30
Class
- LocaleThemeHooks
- Hook implementations for locale.
Namespace
Drupal\locale\HookCode
public function theme() : array {
return [
'locale_translation_last_check' => [
'variables' => [
'last' => NULL,
],
'initial preprocess' => static::class . ':preprocessLocaleTranslationLastCheck',
],
'locale_translation_update_info' => [
'variables' => [
'updates' => [],
'not_found' => [],
],
'initial preprocess' => static::class . ':preprocessLocaleTranslationUpdateInfo',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.