Search for permissions

  1. Search 7.x for permissions
  2. Search 9.5.x for permissions
  3. Search 10.3.x for permissions
  4. Search 11.x for permissions
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Permissions class core/modules/content_moderation/src/Permissions.php Defines a class for dynamic permissions based on transitions.
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.

All search results

Title Object type File name Summary
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.
PermissionsHashGeneratorInterface interface core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php Defines the user permissions hash generator interface.
PermissionsHashGeneratorInterface.php file core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php
PermissionsHashGeneratorInterface::generate function core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php Generates a hash that uniquely identifies a user's permissions.
PermissionsHashGeneratorTest class core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @coversDefaultClass \Drupal\Core\Session\PermissionsHashGenerator
@group Session
PermissionsHashGeneratorTest.php file core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
PermissionsHashGeneratorTest::$account1 property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked super user account.
PermissionsHashGeneratorTest::$account2 property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php A mocked account.
PermissionsHashGeneratorTest::$account2Updated property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php An "updated" mocked account.
PermissionsHashGeneratorTest::$account3 property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php A different account.
PermissionsHashGeneratorTest::$cache property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked cache backend.
PermissionsHashGeneratorTest::$permissionsHash property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The permission hash class being tested.
PermissionsHashGeneratorTest::$privateKey property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked private key service.
PermissionsHashGeneratorTest::$staticCache property core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php The mocked cache backend.
PermissionsHashGeneratorTest::setUp function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
PermissionsHashGeneratorTest::testGenerate function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @covers ::generate
PermissionsHashGeneratorTest::testGenerateNoCache function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php Tests the generate method with no cache returned.
PermissionsHashGeneratorTest::testGeneratePersistentCache function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @covers ::generate
PermissionsHashGeneratorTest::testGenerateStaticCache function core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @covers ::generate
PermissionsTest class core/modules/system/tests/src/Kernel/PermissionsTest.php @group system
PermissionsTest.php file core/modules/system/tests/src/Kernel/PermissionsTest.php
PermissionsTest::$modules property core/modules/system/tests/src/Kernel/PermissionsTest.php Modules to enable.
PermissionsTest::testAccessContentPermission function core/modules/system/tests/src/Kernel/PermissionsTest.php Tests the 'access content' permission is provided by the System module.
quickedit.permissions.yml file core/modules/quickedit/quickedit.permissions.yml core/modules/quickedit/quickedit.permissions.yml
QuickEditIntegrationLoadingTest::$basicPermissions property core/modules/editor/tests/src/Functional/QuickEditIntegrationLoadingTest.php The basic permissions necessary to view content and use in-place editing.
QuickEditLoadingTest::testUserPermissions function core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditLoadingTest.php Test the loading of Quick Edit with different permissions.
RebuildPermissionsForm class core/modules/node/src/Form/RebuildPermissionsForm.php Form for rebuilding permissions.
RebuildPermissionsForm.php file core/modules/node/src/Form/RebuildPermissionsForm.php
RebuildPermissionsForm::getCancelUrl function core/modules/node/src/Form/RebuildPermissionsForm.php Returns the route to go to if the user cancels the action.
RebuildPermissionsForm::getConfirmText function core/modules/node/src/Form/RebuildPermissionsForm.php Returns a caption for the button that confirms the action.
RebuildPermissionsForm::getDescription function core/modules/node/src/Form/RebuildPermissionsForm.php Returns additional text to display as a description.
RebuildPermissionsForm::getFormId function core/modules/node/src/Form/RebuildPermissionsForm.php Returns a unique string identifying the form.
RebuildPermissionsForm::getQuestion function core/modules/node/src/Form/RebuildPermissionsForm.php Returns the question to ask the user.
RebuildPermissionsForm::submitForm function core/modules/node/src/Form/RebuildPermissionsForm.php Form submission handler.
ResourceBase::permissions function core/modules/rest/src/Plugin/ResourceBase.php Implements ResourceInterface::permissions().
ResourceInterface::permissions function core/modules/rest/src/Plugin/ResourceInterface.php Provides an array of permissions suitable for .permissions.yml files.
ResourceTestBase::getEditorialPermissions function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Gets an array of permissions required to view and update any tested entity.
ResourceTestBase::getIncludePermissions function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php Authorize the user under test with additional permissions to view includes.

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