function LocaleFormHooks::importEnabled
Check if import is enabled.
1 call to LocaleFormHooks::importEnabled()
- LocaleFormHooks::formLanguageAdminAddFormAlterSubmit in core/
modules/ locale/ src/ Hook/ LocaleFormHooks.php - Form submission handler for language_admin_add_form.
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.