public function LanguageConfigurationHandler::loadFromDatabase in Configuration Management 7.3
Loads the configuration from the database.
Parameters
string $identifier: The identifier of the configuration to load.
Return value
\Configuration\Configuration A configuration object.
Overrides ConfigurationHandler::loadFromDatabase
File
- src/
Handlers/ LanguageConfigurationHandler.php, line 19
Class
Namespace
Configuration\HandlersCode
public function loadFromDatabase($identifier) {
$name = $this
->getInternalId($identifier);
$language_list = $this->configuration_manager
->drupal()
->language_list();
$language = $language_list[$name];
$configuration = new Configuration();
$configuration
->setIdentifier($identifier);
$configuration
->setData($language);
$configuration
->addModule('locale');
$event = $this
->triggerEvent('load_from_database', $configuration);
return $event->configuration;
}