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
1 2 3 4 5 6 | protected function getYamlDiscovery() { if (!isset( $this ->yamlDiscovery)) { $this ->yamlDiscovery = new YamlDiscovery( 'permissions' , $this ->moduleHandler->getModuleDirectories()); } return $this ->yamlDiscovery; } |
Please login to continue.