Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 10.3.x for all
  5. Search 11.x for all
  6. Other projects
Title Object type File name Summary
Permission::__construct function core/modules/user/src/Plugin/views/access/Permission.php Constructs a Permission object.
PermissionAccessCheck class core/modules/user/src/Access/PermissionAccessCheck.php Permission access check.
PermissionAccessCheck.php file core/modules/user/src/Access/PermissionAccessCheck.php
PermissionAccessCheck::access function core/modules/user/src/Access/PermissionAccessCheck.php Checks access.
PermissionAccessCheckTest class core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php Tests Drupal\user\Access\PermissionAccessCheck.
PermissionAccessCheckTest.php file core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
PermissionAccessCheckTest::$accessCheck property core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php The tested access checker.
PermissionAccessCheckTest::$container property core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php The dependency injection container.
PermissionAccessCheckTest::providerTestAccess function core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php Provides data for the testAccess method.
PermissionAccessCheckTest::setUp function core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php
PermissionAccessCheckTest::testAccess function core/modules/user/tests/src/Unit/PermissionAccessCheckTest.php Tests the access check method.
PermissionChecker class core/lib/Drupal/Core/Session/PermissionChecker.php Checks permissions for an account.
PermissionChecker.php file core/lib/Drupal/Core/Session/PermissionChecker.php
PermissionChecker::hasPermission function core/lib/Drupal/Core/Session/PermissionChecker.php
PermissionChecker::__construct function core/lib/Drupal/Core/Session/PermissionChecker.php
PermissionCheckerInterface interface core/lib/Drupal/Core/Session/PermissionCheckerInterface.php Defines a permission checker interface.
PermissionCheckerInterface.php file core/lib/Drupal/Core/Session/PermissionCheckerInterface.php
PermissionCheckerInterface::hasPermission function core/lib/Drupal/Core/Session/PermissionCheckerInterface.php Checks whether an account has a permission.
PermissionCheckerTest class core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php Tests Drupal\Core\Session\PermissionChecker.
PermissionCheckerTest.php file core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php
PermissionCheckerTest::$account property core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php The mocked account to use for testing.
PermissionCheckerTest::$checker property core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php The permission checker to run tests on.
PermissionCheckerTest::$processor property core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php The mocked access policy processor.
PermissionCheckerTest::setUp function core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php
PermissionCheckerTest::testHasPermission function core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php Tests the hasPermission method under normal circumstances.
PermissionCheckerTest::testHasPermissionEmpty function core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php Tests the hasPermission method when no policy added something.
PermissionCheckerTest::testHasPermissionMixed function core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php Tests the hasPermission method when mixed scopes and identifiers exist.
PermissionCheckerTest::testHasPermissionOnlyContrib function core/tests/Drupal/Tests/Core/Session/PermissionCheckerTest.php Tests the hasPermission method with only contrib scopes and identifiers.
PermissionFilterTest class core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php Tests the JavaScript functionality of the permission filter.
PermissionFilterTest.php file core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php
PermissionFilterTest::$defaultTheme property core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php
PermissionFilterTest::$modules property core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php
PermissionFilterTest::filterVisibleElements function core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php Removes any non-visible elements from the passed array.
PermissionFilterTest::setUp function core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php
PermissionFilterTest::testPermissionFilter function core/modules/user/tests/src/FunctionalJavascript/PermissionFilterTest.php Tests that filter results announcement has correct pluralization.
PermissionHandler class core/modules/user/src/PermissionHandler.php Provides the available permissions based on yml files.
PermissionHandler.php file core/modules/user/src/PermissionHandler.php
PermissionHandler::$callableResolver property core/modules/user/src/PermissionHandler.php The callable resolver.
PermissionHandler::$moduleHandler property core/modules/user/src/PermissionHandler.php The module handler.
PermissionHandler::$yamlDiscovery property core/modules/user/src/PermissionHandler.php The YAML discovery class to find all .permissions.yml files.
PermissionHandler::buildPermissionsYaml function core/modules/user/src/PermissionHandler.php Builds all permissions provided by .permissions.yml files.
PermissionHandler::getModuleNames function core/modules/user/src/PermissionHandler.php Returns all module names.
PermissionHandler::getPermissions function core/modules/user/src/PermissionHandler.php
PermissionHandler::getYamlDiscovery function core/modules/user/src/PermissionHandler.php Gets the YAML discovery.
PermissionHandler::moduleProvidesPermissions function core/modules/user/src/PermissionHandler.php
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.

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