PermissionHandler::getYamlDiscovery

protected PermissionHandler::getYamlDiscovery()

Gets the YAML discovery.

Return value

\Drupal\Core\Discovery\YamlDiscovery The YAML discovery.

File

core/modules/user/src/PermissionHandler.php, line 97

Class

PermissionHandler
Provides the available permissions based on yml files.

Namespace

Drupal\user

Code

protected function getYamlDiscovery() {
  if (!isset($this->yamlDiscovery)) {
    $this->yamlDiscovery = new YamlDiscovery('permissions', $this->moduleHandler->getModuleDirectories());
  }
  return $this->yamlDiscovery;
}
doc_Drupal
2016-10-29 09:33:40
Comments
Leave a Comment

Please login to continue.