PermissionHandler::$yamlDiscovery

The YAML discovery class to find all .permissions.yml files. Type: \Drupal\Core\Discovery\YamlDiscovery File core/modules/user/src/PermissionHandler.php, line 64 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected $yamlDiscovery;

PermissionHandler::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/user/src/PermissionHandler.php, line 57 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected $moduleHandler;

PermissionHandler::$controllerResolver

The controller resolver. Type: \Drupal\Core\Controller\ControllerResolverInterface File core/modules/user/src/PermissionHandler.php, line 71 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected $controllerResolver;

PermissionHandler

Provides the available permissions based on yml files. To define permissions you can use a $module.permissions.yml file. This file defines machine names, human-readable names, restrict access (if required for security warning), and optionally descriptions for each permission type. The machine names are the canonical way to refer to permissions for access checking. If your module needs to define dynamic permissions you can use the permission_callbacks key to declare a callable that will return a

PermissionAccessCheck::access

public PermissionAccessCheck::access(Route $route, AccountInterface $account) Checks access. Parameters \Symfony\Component\Routing\Route $route: The route to check against. \Drupal\Core\Session\AccountInterface $account: The currently logged in account. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/user/src/Access/PermissionAccessCheck.php, line 27 Class PermissionAccessCheck Determines access to routes based on permissions defined via $modul

PermissionAccessCheck

Determines access to routes based on permissions defined via $module.permissions.yml files. Hierarchy class \Drupal\user\Access\PermissionAccessCheck implements AccessInterface File core/modules/user/src/Access/PermissionAccessCheck.php, line 14 Namespace Drupal\user\Access Members Name Modifiers Type Description PermissionAccessCheck::access public function Checks access.

Percentage::format

public static Percentage::format($total, $current) Formats the percent completion for a batch set. Parameters int $total: The total number of operations. int $current: The number of the current operation. This may be a floating point number rather than an integer in the case of a multi-step operation that is not yet complete; in that case, the fractional part of $current represents the fraction of the operation that has been completed. Return value string The properly formatted percentage, as

Percentage

Helper methods for the batch system. Hierarchy class \Drupal\Core\Batch\Percentage File core/lib/Drupal/Core/Batch/Percentage.php, line 8 Namespace Drupal\Core\Batch Members Name Modifiers Type Description Percentage::format public static function Formats the percent completion for a batch set.

Pecl::generate

public Pecl::generate() Generates a Universally Unique IDentifier (UUID). Return value A 16 byte integer represented as a hex string formatted with 4 hyphens. Overrides UuidInterface::generate File core/lib/Drupal/Component/Uuid/Pecl.php, line 13 Class Pecl Generates a UUID using the PECL extension. Namespace Drupal\Component\Uuid Code public function generate() { return uuid_create(UUID_TYPE_DEFAULT); }

Pecl

Generates a UUID using the PECL extension. Hierarchy class \Drupal\Component\Uuid\Pecl implements UuidInterface File core/lib/Drupal/Component/Uuid/Pecl.php, line 8 Namespace Drupal\Component\Uuid Members Name Modifiers Type Description Pecl::generate public function Generates a Universally Unique IDentifier (UUID). Overrides UuidInterface::generate