Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PermissionHandler.php

function PermissionHandler::getYamlDiscovery

Gets the YAML discovery.

Return value

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

File

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

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal