38 string references to user.permissions
- AccessResult::allowedIfHasPermission in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Creates an allowed access result if the permission is present, neutral otherwise.
- AccessResult::allowedIfHasPermissions in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Creates an allowed access result if the permissions are present, neutral otherwise.
- AccessResult::cachePerPermissions in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Convenience method, adds the "user.permissions" cache context.
- AccessResultTest::testCacheContexts in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::addCacheContexts[[api-linebreak]] @covers ::resetCacheContexts[[api-linebreak]] @covers ::getCacheContexts[[api-linebreak]] @covers ::cachePerPermissions[[api-linebreak]] @covers ::cachePerUser[[api-linebreak]] @covers…
- AccessResultTest::testInheritCacheability in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::inheritCacheability[[api-linebreak]]
- AccessResultTest::testOrIfCacheabilityMerging in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::orIf[[api-linebreak]]
- AnonymousUserResponseSubscriber::onRespond in core/
lib/ Drupal/ Core/ EventSubscriber/ AnonymousUserResponseSubscriber.php - Adds a cache tag if the 'user.permissions' cache context is present.
- BaseFieldOverrideResourceTestBase::getExpectedCacheContexts in core/
tests/ Drupal/ FunctionalTests/ Rest/ BaseFieldOverrideResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability in core/
modules/ block/ tests/ src/ Kernel/ BlockViewBuilderTest.php - Asserts that a block is built/rendered/cached with expected cacheability.
- CacheContextOptimizationTest::testUserPermissionCacheContextOptimization in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ CacheContextOptimizationTest.php - Ensures that 'user.permissions' cache context is able to define cache tags.
- CommentCacheTagsTest::getDefaultCacheContexts in core/
modules/ comment/ tests/ src/ Functional/ CommentCacheTagsTest.php - Gets the default cache contexts for rendered entities.
- CommentDefaultFormatter::viewElements in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentDefaultFormatter.php - Builds a renderable array for a field value.
- CommentForm::form in core/
modules/ comment/ src/ CommentForm.php - Gets the actual form array to be built.
- CommentRssTest::testCommentRss in core/
modules/ comment/ tests/ src/ Functional/ CommentRssTest.php - Tests comments as part of an RSS feed.
- contextual_preprocess in core/
modules/ contextual/ contextual.module - Implements hook_preprocess().
- contextual_toolbar in core/
modules/ contextual/ contextual.module - Implements hook_toolbar().
- DisplayPathTest::testMenuOptions in core/
modules/ views_ui/ tests/ src/ Functional/ DisplayPathTest.php - Tests the menu and tab option form.
- EditorResourceTestBase::getExpectedCacheContexts in core/
modules/ editor/ tests/ src/ Functional/ Rest/ EditorResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityFormDisplayResourceTestBase::getExpectedCacheContexts in core/
tests/ Drupal/ FunctionalTests/ Rest/ EntityFormDisplayResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityPermissionsForm::create in core/
modules/ user/ src/ Form/ EntityPermissionsForm.php - Instantiates a new instance of this class.
- EntityViewDisplayResourceTestBase::getExpectedCacheContexts in core/
tests/ Drupal/ FunctionalTests/ Rest/ EntityViewDisplayResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- hook_menu_local_tasks_alter in core/
lib/ Drupal/ Core/ Menu/ menu.api.php - Alter local tasks displayed on the page before they are rendered.
- ItemResourceTestBase::getExpectedCacheContexts in core/
modules/ aggregator/ tests/ src/ Functional/ Rest/ ItemResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- LayoutBuilderIntegration::entityViewAlter in core/
modules/ quickedit/ src/ LayoutBuilderIntegration.php - Alters the entity view build for Layout Builder compatibility.
- LocalActionManagerTest::getActionsForRouteProvider in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalActionManagerTest.php - LocalTaskManagerTest::setupNullCacheabilityMetadataValidation in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskManagerTest.php - LocalTaskManagerTest::testGetTasksBuildWithCacheabilityMetadata in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskManagerTest.php - @covers ::getTasksBuild[[api-linebreak]]
- Permission::create in core/
modules/ user/ src/ Plugin/ views/ access/ Permission.php - Creates an instance of the plugin.
- Permission::getCacheContexts in core/
modules/ user/ src/ Plugin/ views/ access/ Permission.php - The cache contexts associated with this object.
- PermissionAccessCheckTest::providerTestAccess in core/
modules/ user/ tests/ src/ Unit/ PermissionAccessCheckTest.php - Provides data for the testAccess method.
- Permissions::create in core/
modules/ user/ src/ Plugin/ views/ filter/ Permissions.php - Creates an instance of the plugin.
- quickedit_entity_view_alter in core/
modules/ quickedit/ quickedit.module - Implements hook_entity_view_alter().
- quickedit_preprocess_entity_page_title in core/
modules/ quickedit/ quickedit.module - Implements hook_preprocess_entity_page_title().
- quickedit_preprocess_field in core/
modules/ quickedit/ quickedit.module - Implements hook_preprocess_HOOK() for field templates.
- quickedit_preprocess_page_title in core/
modules/ quickedit/ quickedit.module - Implements hook_preprocess_HOOK() for the page title template.
- ToolbarCacheContextsTest::testToolbarCacheContextsCaller in core/
modules/ toolbar/ tests/ src/ Functional/ ToolbarCacheContextsTest.php - Tests toolbar cache contexts.
- toolbar_page_top in core/
modules/ toolbar/ toolbar.module - Implements hook_page_top().
- UserPermissionsForm::create in core/
modules/ user/ src/ Form/ UserPermissionsForm.php - Instantiates a new instance of this class.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.