private function TeamPermissionHandler::getYamlDiscovery in Apigee Edge 8
Gets the YAML discovery.
Return value
\Drupal\Core\Discovery\YamlDiscovery The YAML discovery.
File
- modules/
apigee_edge_teams/ src/ TeamPermissionHandler.php, line 191
Class
- TeamPermissionHandler
- Provides the available team permissions based on yml files.
Namespace
Drupal\apigee_edge_teamsCode
private function getYamlDiscovery() : YamlDiscovery {
if (!isset($this->yamlDiscovery)) {
$this->yamlDiscovery = new YamlDiscovery('team_permissions', $this->moduleHandler
->getModuleDirectories());
}
return $this->yamlDiscovery;
}