| AccessResult::allowedIfHasPermissions |
function |
core/lib/Drupal/Core/Access/AccessResult.php |
Creates an allowed access result if the permissions are present, neutral otherwise. |
| AccessResult::cachePerPermissions |
function |
core/lib/Drupal/Core/Access/AccessResult.php |
Convenience method, adds the "user.permissions" cache context. |
| AccessResultTest::providerTestAllowedIfHasPermissions |
function |
core/tests/Drupal/Tests/Core/Access/AccessResultTest.php |
Provides data for the testAllowedIfHasPermissions() method. |
| AccessResultTest::testAllowedIfHasPermissions |
function |
core/tests/Drupal/Tests/Core/Access/AccessResultTest.php |
Tests allowedIfHasPermissions(). |
| AccountPermissionsCacheContext |
class |
core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php |
Defines the AccountPermissionsCacheContext service, for "per permission" caching. |
| AccountPermissionsCacheContext.php |
file |
core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php |
|
| AccountPermissionsCacheContext::$permissionsHashGenerator |
property |
core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php |
The permissions hash generator. |
| AccountPermissionsCacheContext::getCacheableMetadata |
function |
core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php |
Gets the cacheability metadata for the context. |
| AccountPermissionsCacheContext::getContext |
function |
core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php |
Returns the string representation of the cache context. |
| AccountPermissionsCacheContext::getLabel |
function |
core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php |
Returns the label of the cache context. |
| AccountPermissionsCacheContext::__construct |
function |
core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php |
Constructs a new UserCacheContext service. |
| action.permissions.yml |
file |
core/modules/action/action.permissions.yml |
core/modules/action/action.permissions.yml |
| aggregator.permissions.yml |
file |
core/modules/aggregator/aggregator.permissions.yml |
core/modules/aggregator/aggregator.permissions.yml |
| ban.permissions.yml |
file |
core/modules/ban/ban.permissions.yml |
core/modules/ban/ban.permissions.yml |
| block.permissions.yml |
file |
core/modules/block/block.permissions.yml |
core/modules/block/block.permissions.yml |
| BlockCacheTest::testCachePermissions |
function |
core/modules/block/tests/src/Functional/BlockCacheTest.php |
Tests a cacheable block without any additional cache context. |
| BlockContentCreationTest::$permissions |
property |
core/modules/block_content/tests/src/Functional/BlockContentCreationTest.php |
Permissions to grant admin user. |
| BlockContentTestBase::$permissions |
property |
core/modules/block_content/tests/src/Functional/Views/BlockContentTestBase.php |
Permissions to grant admin user. |
| BlockContentTestBase::$permissions |
property |
core/modules/block_content/tests/src/Functional/BlockContentTestBase.php |
Permissions to grant admin user. |
| BlockContentTranslationUITest::getTranslatorPermissions |
function |
core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php |
Returns an array of permissions needed for the translator. |
| BlockContentTypeTest::$permissions |
property |
core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php |
Permissions to grant admin user. |
| book.permissions.yml |
file |
core/modules/book/book.permissions.yml |
core/modules/book/book.permissions.yml |
| BundlePermissionHandlerTrait::generatePermissions |
function |
core/lib/Drupal/Core/Entity/BundlePermissionHandlerTrait.php |
Builds a permissions array for the supplied bundles. |
| BundlePermissionHandlerTraitTest::buildPermissions |
function |
core/tests/Drupal/KernelTests/Core/Entity/BundlePermissionHandlerTraitTest.php |
|
| BundlePermissionHandlerTraitTest::testGeneratePermissions |
function |
core/tests/Drupal/KernelTests/Core/Entity/BundlePermissionHandlerTraitTest.php |
@covers ::generatePermissions[[api-linebreak]] |
| cache_context.user.permissions |
service |
core/core.services.yml |
Drupal\Core\Cache\Context\AccountPermissionsCacheContext |
| comment.permissions.yml |
file |
core/modules/comment/comment.permissions.yml |
core/modules/comment/comment.permissions.yml |
| CommentTest::getIncludePermissions |
function |
core/modules/jsonapi/tests/src/Functional/CommentTest.php |
Authorize the user under test with additional permissions to view includes. |
| CommentTranslationUITest::getTranslatorPermissions |
function |
core/modules/comment/tests/src/Functional/CommentTranslationUITest.php |
Returns an array of permissions needed for the translator. |
| CommentTypeTest::$permissions |
property |
core/modules/comment/tests/src/Functional/CommentTypeTest.php |
Permissions to grant admin user. |
| CommonCollectionFilterAccessTestPatternsTrait::doTestCollectionFilterAccessBasedOnPermissions |
function |
core/modules/jsonapi/tests/src/Traits/CommonCollectionFilterAccessTestPatternsTrait.php |
Implements ::testCollectionFilterAccess() for pure permission-based access. |
| config.permissions.yml |
file |
core/modules/config/config.permissions.yml |
core/modules/config/config.permissions.yml |
| config_test_rest.permissions.yml |
file |
core/modules/rest/tests/modules/config_test_rest/config_test_rest.permissions.yml |
core/modules/rest/tests/modules/config_test_rest/config_test_rest.permissions.yml |
| config_translation.permissions.yml |
file |
core/modules/config_translation/config_translation.permissions.yml |
core/modules/config_translation/config_translation.permissions.yml |
| contact.permissions.yml |
file |
core/modules/contact/contact.permissions.yml |
core/modules/contact/contact.permissions.yml |
| ContentModerationPermissionsTest |
class |
core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php |
Test to ensure content moderation permissions are generated correctly. |
| ContentModerationPermissionsTest.php |
file |
core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php |
|
| ContentModerationPermissionsTest::$modules |
property |
core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php |
Modules to install. |
| ContentModerationPermissionsTest::permissionsTestCases |
function |
core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php |
Test cases for ::testPermissions. |
| ContentModerationPermissionsTest::setUp |
function |
core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php |
|
| ContentModerationPermissionsTest::testPermissions |
function |
core/modules/content_moderation/tests/src/Kernel/ContentModerationPermissionsTest.php |
Tests permissions generated by content moderation. |
| ContentTestTranslationUITest::getTranslatorPermissions |
function |
core/modules/content_translation/tests/src/Functional/ContentTestTranslationUITest.php |
Returns an array of permissions needed for the translator. |
| ContentTranslationPendingRevisionTestBase::$commonPermissions |
property |
core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php |
Permissions common to all test accounts. |
| ContentTranslationPendingRevisionTestBase::getEditorPermissions |
function |
core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php |
Returns an array of permissions needed for the editor. |
| ContentTranslationPendingRevisionTestBase::getTranslatorPermissions |
function |
core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php |
Returns an array of permissions needed for the translator. |
| ContentTranslationPermissions |
class |
core/modules/content_translation/src/ContentTranslationPermissions.php |
Provides dynamic permissions for the content_translation module. |
| ContentTranslationPermissions.php |
file |
core/modules/content_translation/src/ContentTranslationPermissions.php |
|
| ContentTranslationPermissions::$contentTranslationManager |
property |
core/modules/content_translation/src/ContentTranslationPermissions.php |
The content translation manager. |
| ContentTranslationPermissions::$entityTypeBundleInfo |
property |
core/modules/content_translation/src/ContentTranslationPermissions.php |
The entity bundle info. |
| ContentTranslationPermissions::$entityTypeManager |
property |
core/modules/content_translation/src/ContentTranslationPermissions.php |
The entity type manager. |