You are here

protected function PermissionHandler::getYamlDiscovery in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/PermissionHandler.php \Drupal\user\PermissionHandler::getYamlDiscovery()

Gets the YAML discovery.

Return value

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

File

core/modules/user/src/PermissionHandler.php, line 102
Contains \Drupal\user\PermissionHandler.

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;
}