Search for permissions

  1. Search 7.x for permissions
  2. Search 9.5.x for permissions
  3. Search 8.9.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
PermissionsPerBundleDeriver::__construct function core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/Deriver/PermissionsPerBundleDeriver.php
PermissionsPerBundleTest class core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php @covers \Drupal\Core\Config\Action\Plugin\ConfigAction\PermissionsPerBundle
@covers \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\PermissionsPerBundleDeriver
PermissionsPerBundleTest.php file core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php
PermissionsPerBundleTest::$modules property core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Modules to install.
PermissionsPerBundleTest::applyRecipeFromString function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Given a string of `recipe.yml` contents, applies it to the site.
PermissionsPerBundleTest::setUp function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php
PermissionsPerBundleTest::testActionIsOnlyAvailableToUserRoles function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests that the permissions-per-bundle action can only be applied to roles.
PermissionsPerBundleTest::testGrantPermissionsOnOneBundleThenAll function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests granting permissions for one bundle, then all of them.
PermissionsPerBundleTest::testGrantPermissionsPerBundle function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests granting multiple bundle-specific permissions.
PermissionsPerBundleTest::testGrantPermissionsToAllBundlesExceptSome function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests granting permissions for all bundles except certain ones.
PermissionsPerBundleTest::testInvalidValue function core/tests/Drupal/KernelTests/Core/Recipe/PermissionsPerBundleTest.php Tests that there is an exception if the permission templates are invalid.
PermissionsTest class core/modules/system/tests/src/Kernel/PermissionsTest.php @group system
PermissionsTest class core/modules/user/tests/src/Unit/Plugin/views/field/PermissionsTest.php @coversDefaultClass \Drupal\user\Plugin\views\field\Permissions
@group user
PermissionsTest.php file core/modules/system/tests/src/Kernel/PermissionsTest.php
PermissionsTest.php file core/modules/user/tests/src/Unit/Plugin/views/field/PermissionsTest.php
PermissionsTest::$modules property core/modules/system/tests/src/Kernel/PermissionsTest.php Modules to install.
PermissionsTest::setUp function core/modules/user/tests/src/Unit/Plugin/views/field/PermissionsTest.php
PermissionsTest::testAccessContentPermission function core/modules/system/tests/src/Kernel/PermissionsTest.php Tests the 'access content' permission is provided by the System module.
PermissionsTest::testPreRenderNullEntity function core/modules/user/tests/src/Unit/Plugin/views/field/PermissionsTest.php Tests the preRender method when getEntity returns NULL.
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.
RefinableCalculatedPermissions class core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php Represents a calculated set of permissions with cacheable metadata.
RefinableCalculatedPermissions.php file core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php
RefinableCalculatedPermissions::addItem function core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php Adds a calculated permission item.
RefinableCalculatedPermissions::merge function core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php Merge another calculated permissions object into this one.
RefinableCalculatedPermissions::mergeItems function core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php Merges two items of identical scope and identifier.
RefinableCalculatedPermissions::removeItem function core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php Removes a single calculated permission item from a given scope.
RefinableCalculatedPermissions::removeItems function core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php Removes all of the calculated permission items, regardless of scope.
RefinableCalculatedPermissions::removeItemsByScope function core/lib/Drupal/Core/Session/RefinableCalculatedPermissions.php Removes all of the calculated permission items for the given scope.
RefinableCalculatedPermissionsInterface interface core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php Defines the refinable calculated permissions interface.
RefinableCalculatedPermissionsInterface.php file core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php
RefinableCalculatedPermissionsInterface::addItem function core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php Adds a calculated permission item.
RefinableCalculatedPermissionsInterface::merge function core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php Merge another calculated permissions object into this one.
RefinableCalculatedPermissionsInterface::removeItem function core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php Removes a single calculated permission item from a given scope.
RefinableCalculatedPermissionsInterface::removeItems function core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php Removes all of the calculated permission items, regardless of scope.
RefinableCalculatedPermissionsInterface::removeItemsByScope function core/lib/Drupal/Core/Session/RefinableCalculatedPermissionsInterface.php Removes all of the calculated permission items for the given scope.
RefinableCalculatedPermissionsTest class core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php Tests the RefinableCalculatedPermissions class.
RefinableCalculatedPermissionsTest.php file core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php
RefinableCalculatedPermissionsTest::testAddItem function core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php Tests the addition of a calculated permissions item.
RefinableCalculatedPermissionsTest::testAddItemOverwrite function core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php Tests the overwriting of a calculated permissions item.
RefinableCalculatedPermissionsTest::testMerge function core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php Tests merging in another CalculatedPermissions object.
RefinableCalculatedPermissionsTest::testRemoveItem function core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php Tests the removal of a calculated permissions item.
RefinableCalculatedPermissionsTest::testRemoveItems function core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php Tests the removal of all calculated permissions items.
RefinableCalculatedPermissionsTest::testRemoveItemsByScope function core/tests/Drupal/Tests/Core/Session/RefinableCalculatedPermissionsTest.php Tests the removal of calculated permissions items by scope.

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