You are here

protected function GroupPermissionHandler::getYamlDiscovery in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Access/GroupPermissionHandler.php \Drupal\group\Access\GroupPermissionHandler::getYamlDiscovery()

Gets the YAML discovery.

Return value

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

File

src/Access/GroupPermissionHandler.php, line 105

Class

GroupPermissionHandler
Provides the available permissions based on yml files.

Namespace

Drupal\group\Access

Code

protected function getYamlDiscovery() {
  if (!isset($this->yamlDiscovery)) {
    $this->yamlDiscovery = new YamlDiscovery('group.permissions', $this->moduleHandler
      ->getModuleDirectories());
  }
  return $this->yamlDiscovery;
}