public function PermissionConfigurationHandler::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/ PermissionConfigurationHandler.php, line 82
Class
Namespace
Configuration\HandlersCode
public function loadFromDatabase($identifier) {
$name = $this
->getInternalId($identifier);
$configuration = new Configuration();
$configuration
->setIdentifier($identifier);
$configuration
->setData($this->cached_permissions[$name]);
$configuration
->addModule($this->cached_permissions[$name]['module']);
$event = $this
->triggerEvent('load_from_database', $configuration);
return $event->configuration;
}