Search for %s

  1. Search 7.x for %s
  2. Search 9.5.x for %s
  3. Search 10.3.x for %s
  4. Search 11.x for %s
  5. Search main for %s
  6. Other projects
Title Object type File name Summary
PermissionHandler::moduleProvidesPermissions function core/modules/user/src/PermissionHandler.php Determines whether a module provides some permissions.
PermissionHandler::sortPermissions function core/modules/user/src/PermissionHandler.php Sorts the given permissions by provider name and title.
PermissionHandler::__construct function core/modules/user/src/PermissionHandler.php Constructs a new PermissionHandler.
PermissionHandlerInterface interface core/modules/user/src/PermissionHandlerInterface.php Defines an interface to list available permissions.
PermissionHandlerInterface.php file core/modules/user/src/PermissionHandlerInterface.php
PermissionHandlerInterface::getPermissions function core/modules/user/src/PermissionHandlerInterface.php Gets all available permissions.
PermissionHandlerInterface::moduleProvidesPermissions function core/modules/user/src/PermissionHandlerInterface.php Determines whether a module provides some permissions.
PermissionHandlerTest class core/modules/user/tests/src/Unit/PermissionHandlerTest.php Tests the permission handler.
PermissionHandlerTest.php file core/modules/user/tests/src/Unit/PermissionHandlerTest.php Contains \Drupal\Tests\user\Unit\PermissionHandlerTest.
PermissionHandlerTest::$controllerResolver property core/modules/user/tests/src/Unit/PermissionHandlerTest.php The mocked controller resolver.
PermissionHandlerTest::$moduleHandler property core/modules/user/tests/src/Unit/PermissionHandlerTest.php The mocked module handler.
PermissionHandlerTest::$permissionHandler property core/modules/user/tests/src/Unit/PermissionHandlerTest.php The tested permission handler.
PermissionHandlerTest::$stringTranslation property core/modules/user/tests/src/Unit/PermissionHandlerTest.php The mocked string translation.
PermissionHandlerTest::assertPermissions function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Checks that the permissions are like expected.
PermissionHandlerTest::mockModuleExtension function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Provides an extension object for a given module with a human name.
PermissionHandlerTest::setUp function core/modules/user/tests/src/Unit/PermissionHandlerTest.php
PermissionHandlerTest::testBuildPermissionsSortPerModule function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Tests permissions sort inside a module.
PermissionHandlerTest::testBuildPermissionsYaml function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Tests permissions provided by YML files.
PermissionHandlerTest::testBuildPermissionsYamlCallback function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Tests dynamic callback permissions provided by YML files.
PermissionHandlerTest::testPermissionsYamlStaticAndCallback function core/modules/user/tests/src/Unit/PermissionHandlerTest.php Tests a YAML file containing both static permissions and a callback.
Permissions class core/modules/user/src/Plugin/views/field/Permissions.php Field handler to provide a list of permissions.
Permissions class core/modules/user/src/Plugin/views/filter/Permissions.php Filter handler for user roles.
Permissions class core/modules/content_moderation/src/Permissions.php Defines a class for dynamic permissions based on transitions.
Permissions.php file core/modules/content_moderation/src/Permissions.php
Permissions.php file core/modules/user/src/Plugin/views/field/Permissions.php
Permissions.php file core/modules/user/src/Plugin/views/filter/Permissions.php
Permissions::$moduleHandler property core/modules/user/src/Plugin/views/field/Permissions.php The module handler.
Permissions::$moduleHandler property core/modules/user/src/Plugin/views/filter/Permissions.php The module handler.
Permissions::$permissionHandler property core/modules/user/src/Plugin/views/filter/Permissions.php The permission handler.
Permissions::$roleStorage property core/modules/user/src/Plugin/views/field/Permissions.php The role storage.
Permissions::create function core/modules/user/src/Plugin/views/field/Permissions.php Creates an instance of the plugin.
Permissions::create function core/modules/user/src/Plugin/views/filter/Permissions.php Creates an instance of the plugin.
Permissions::getValueOptions function core/modules/user/src/Plugin/views/filter/Permissions.php Child classes should be used to override this function and set the
'value options', unless 'options callback' is defined as a valid function
or static public method to generate these values.
Permissions::init function core/modules/user/src/Plugin/views/field/Permissions.php Initialize the plugin.
Permissions::preRender function core/modules/user/src/Plugin/views/field/Permissions.php Runs before any fields are rendered.
Permissions::query function core/modules/user/src/Plugin/views/field/Permissions.php Called to add the field to a query.
Permissions::query function core/modules/user/src/Plugin/views/filter/Permissions.php Replace the configured permission with a filter by all roles that have this
permission.
Permissions::render_item function core/modules/user/src/Plugin/views/field/Permissions.php Renders a single item of a row.
Permissions::transitionPermissions function core/modules/content_moderation/src/Permissions.php Returns an array of transition permissions.
Permissions::__construct function core/modules/user/src/Plugin/views/field/Permissions.php Constructs a \Drupal\user\Plugin\views\field\Permissions object.
Permissions::__construct function core/modules/user/src/Plugin/views/filter/Permissions.php Constructs a Permissions object.
PermissionsHashGenerator class core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Generates and caches the permissions hash for a user.
PermissionsHashGenerator.php file core/lib/Drupal/Core/Session/PermissionsHashGenerator.php
PermissionsHashGenerator::$cache property core/lib/Drupal/Core/Session/PermissionsHashGenerator.php The cache backend interface to use for the persistent cache.
PermissionsHashGenerator::$privateKey property core/lib/Drupal/Core/Session/PermissionsHashGenerator.php The private key service.
PermissionsHashGenerator::$static property core/lib/Drupal/Core/Session/PermissionsHashGenerator.php The cache backend interface to use for the static cache.
PermissionsHashGenerator::doGenerate function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Generates a hash that uniquely identifies the user's permissions.
PermissionsHashGenerator::generate function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Cached by role, invalidated whenever permissions change.
PermissionsHashGenerator::hash function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Hashes the given string.
PermissionsHashGenerator::__construct function core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Constructs a PermissionsHashGenerator object.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.