LocaleConfigManager::isSupported

public LocaleConfigManager::isSupported($name)

Whether the given configuration is supported for interface translation.

Parameters

string $name: The configuration name.

Return value

bool TRUE if interface translation is supported.

File

core/modules/locale/src/LocaleConfigManager.php, line 532

Class

LocaleConfigManager
Manages configuration supported in part by interface translation.

Namespace

Drupal\locale

Code

public function isSupported($name) {
  return $this->getDefaultConfigLangcode($name) == 'en' && $this->configStorage->read($name);
}
doc_Drupal
2016-10-29 09:23:55
Comments
Leave a Comment

Please login to continue.