function LocaleFormHooks::importEnabled
Same name and namespace in other branches
- 11.x core/modules/locale/src/Hook/LocaleFormHooks.php \Drupal\locale\Hook\LocaleFormHooks::importEnabled()
Check if import is enabled.
File
-
core/
modules/ locale/ src/ Hook/ LocaleFormHooks.php, line 167
Class
- LocaleFormHooks
- Form hook implementations for locale.
Namespace
Drupal\locale\HookCode
protected function importEnabled() : bool {
return $this->configFactory
->get('locale.settings')
->get('translation.import_enabled');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.