85 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]]
- ActionResourceTestBase::getExpectedCacheContexts in core/
modules/ system/ tests/ src/ Functional/ Rest/ ActionResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- AnonymousUserResponseSubscriber::onRespond in core/
lib/ Drupal/ Core/ EventSubscriber/ AnonymousUserResponseSubscriber.php - Adds a cache tag if the 'user.permissions' cache context is present.
- AssertPageCacheContextsAndTagsTrait::assertCacheContexts in core/
modules/ system/ tests/ src/ Functional/ Cache/ AssertPageCacheContextsAndTagsTrait.php - Ensures that some cache contexts are present in the current response.
- BaseFieldOverrideResourceTestBase::getExpectedCacheContexts in core/
tests/ Drupal/ FunctionalTests/ Rest/ BaseFieldOverrideResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- BlockContentPermissionsTest::setUp in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentPermissionsTest.php - 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.
- common_test_page_attachments in core/
modules/ system/ tests/ modules/ common_test/ common_test.module - Implements hook_page_attachments().
- common_test_page_attachments_alter in core/
modules/ system/ tests/ modules/ common_test/ common_test.module - Implements hook_page_attachments_alter().
- ContentTranslationWorkflowsTest::testWorkflows in core/
modules/ content_translation/ tests/ src/ Functional/ ContentTranslationWorkflowsTest.php - Tests simple and editorial translation workflows.
- contextual_preprocess in core/
modules/ contextual/ contextual.module - Implements hook_preprocess().
- contextual_toolbar in core/
modules/ contextual/ contextual.module - Implements hook_toolbar().
- CookieResourceTestTrait::assertResponseWhenMissingAuthentication in core/
modules/ rest/ tests/ src/ Functional/ CookieResourceTestTrait.php - DateFormatAccessControlHandlerTest::testAccessProvider in core/
modules/ system/ tests/ src/ Kernel/ DateFormatAccessControlHandlerTest.php - DbLogResourceTest::getExpectedUnauthorizedAccessCacheability in core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php - Returns the expected cacheability of an unauthorized access response.
- DbLogResourceTest::testWatchdog in core/
modules/ dblog/ tests/ src/ Functional/ DbLogResourceTest.php - Writes a log messages and retrieves it via the REST API.
- 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.
- EntityCacheTagsTestBase::testReferencedEntity in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityCacheTagsTestBase.php - Tests cache tags presence and invalidation of the entity when referenced.
- EntityFormDisplayResourceTestBase::getExpectedCacheContexts in core/
tests/ Drupal/ FunctionalTests/ Rest/ EntityFormDisplayResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityListBuilderTest::testCacheContexts in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityListBuilderTest.php - Tests that the correct cache contexts are set.
- EntityPermissionsForm::create in core/
modules/ user/ src/ Form/ EntityPermissionsForm.php - Instantiates a new instance of this class.
- EntityResourceTestBase::getExpectedCacheContexts in core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ EntityResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityResourceTestBase::getExpectedUnauthorizedAccessCacheability in core/
modules/ rest/ tests/ src/ Functional/ EntityResource/ EntityResourceTestBase.php - Returns the expected cacheability of an unauthorized access response.
- EntityTestLabelResourceTestBase::getExpectedCacheContexts in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestLabelResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityTestMapFieldResourceTestBase::getExpectedCacheContexts in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestMapFieldResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityTestTextItemNormalizerTest::getExpectedCacheContexts in core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestTextItemNormalizerTest.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityViewDisplayResourceTestBase::getExpectedCacheContexts in core/
tests/ Drupal/ FunctionalTests/ Rest/ EntityViewDisplayResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- EntityWithUriCacheTagsTestBase::getDefaultCacheContexts in core/
modules/ system/ tests/ src/ Functional/ Entity/ EntityWithUriCacheTagsTestBase.php - Gets the default cache contexts for rendered entities.
- FieldRenderedEntityTest::assertCacheabilityMetadata in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FieldRenderedEntityTest.php - Ensures that the expected cacheability metadata is applied.
- FilterAPITest::testProcessedTextElement in core/
modules/ filter/ tests/ src/ Kernel/ FilterAPITest.php - Tests the 'processed_text' element.
- FilterFormatAccessTest::testFormatPermissions in core/
modules/ filter/ tests/ src/ Functional/ FilterFormatAccessTest.php - Tests the Filter format access permissions functionality.
- FilterTestCacheMerge::process in core/
modules/ filter/ tests/ filter_test/ src/ Plugin/ Filter/ FilterTestCacheMerge.php - Performs the filter processing.
- FrontPageTest::doTestFrontPageViewCacheTags in core/
modules/ node/ tests/ src/ Functional/ Views/ FrontPageTest.php - Tests the cache tags on the front page.
- GlossaryTest::testGlossaryView in core/
modules/ views/ tests/ src/ Functional/ GlossaryTest.php - Tests the default glossary view.
- HelpController::helpMain in core/
modules/ help/ src/ Controller/ HelpController.php - Prints a page listing various types of help.
- HelpSearch::findResults in core/
modules/ help/ src/ Plugin/ Search/ HelpSearch.php - Finds the search results.
- HelpTopicSearchTest::testHelpSearch in core/
modules/ help/ tests/ src/ Functional/ HelpTopicSearchTest.php - Tests help topic search.
- 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.
- LazyBuilders::renderAnnouncements in core/
modules/ announcements_feed/ src/ LazyBuilders.php - Render announcements.
- LinksetControllerTest::testAccess in core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerTest.php - Test the access control functionality of the linkset endpoint.
- LinksetControllerTest::testCacheability in core/
modules/ system/ tests/ src/ Functional/ Menu/ LinksetControllerTest.php - Test the cacheability of the linkset endpoint.
- 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]]
- MenuAccessControlHandlerTest::testAccessProvider in core/
modules/ system/ tests/ src/ Kernel/ MenuAccessControlHandlerTest.php - MenuResourceTestBase::getExpectedCacheContexts in core/
modules/ system/ tests/ src/ Functional/ Rest/ MenuResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- ModulesListForm::create in core/
modules/ system/ src/ Form/ ModulesListForm.php - Instantiates a new instance of this class.
- NavigationRenderer::buildTopBar in core/
modules/ navigation/ src/ NavigationRenderer.php - Build the top bar for content entity pages.
- NodeAccessCacheabilityTest::testNodeAccessCacheContext in core/
modules/ node/ tests/ src/ Functional/ NodeAccessCacheabilityTest.php - Tests that the user cache contexts are correctly set.
- NodeListBuilderTest::testCacheContexts in core/
modules/ node/ tests/ src/ Kernel/ NodeListBuilderTest.php - Tests that the correct cache contexts are set.
- NodeResourceTestBase::getExpectedCacheContexts in core/
modules/ node/ tests/ src/ Functional/ Rest/ NodeResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- NodeTypeTest::testNodeTypeCreation in core/
modules/ node/ tests/ src/ Functional/ NodeTypeTest.php - Tests creating a content type programmatically and via a form.
- PageRenderTest::assertPageRenderHookExceptions in core/
modules/ system/ tests/ src/ Kernel/ Common/ PageRenderTest.php - Asserts whether expected exceptions are thrown for invalid hook implementations.
- PathBasedBreadcrumbBuilderTest::testBuildWithThreePathElements in core/
modules/ system/ tests/ src/ Unit/ Breadcrumbs/ PathBasedBreadcrumbBuilderTest.php - Tests the build method with three path elements.
- PathBasedBreadcrumbBuilderTest::testBuildWithTwoPathElements in core/
modules/ system/ tests/ src/ Unit/ Breadcrumbs/ PathBasedBreadcrumbBuilderTest.php - Tests the build method with two path elements.
- PathBasedBreadcrumbBuilderTest::testBuildWithUserPath in core/
modules/ system/ tests/ src/ Unit/ Breadcrumbs/ PathBasedBreadcrumbBuilderTest.php - Tests the breadcrumb for a user path.
- 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.
- PermissionsTest::setUp in core/
modules/ user/ tests/ src/ Unit/ Plugin/ views/ field/ PermissionsTest.php - RenderCacheIntegrationTest::testViewAddCacheMetadata in core/
modules/ views/ tests/ src/ Kernel/ RenderCacheIntegrationTest.php - Ensures that saving a view calculates the cache contexts.
- RestResourceConfigResourceTestBase::getExpectedCacheContexts in core/
modules/ rest/ tests/ src/ Functional/ Rest/ RestResourceConfigResourceTestBase.php - The expected cache contexts for the GET/HEAD response of the test entity.
- RouterTest::testFinishResponseSubscriber in core/
modules/ system/ tests/ src/ Functional/ Routing/ RouterTest.php - Confirms that our FinishResponseSubscriber logic works properly.
- RowRenderCacheTest::doTestRenderedOutput in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ RowRenderCacheTest.php - Check whether the rendered output matches expectations.
- RowRenderCacheTest::testNoCaching in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ RowRenderCacheTest.php - Tests that rows are not cached when the none cache plugin is used.
- SiteMaintenanceModeForm::create in core/
modules/ system/ src/ Form/ SiteMaintenanceModeForm.php - Instantiates a new instance of this class.
- 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().
- UrlTest::testLinkBubbleableMetadata in core/
modules/ system/ tests/ src/ Kernel/ Common/ UrlTest.php - Tests that #type=link bubbles outbound route/path processors' metadata.
- UserPermissionsForm::create in core/
modules/ user/ src/ Form/ UserPermissionsForm.php - Instantiates a new instance of this class.
- views_add_contextual_links in core/
modules/ views/ views.module - Adds contextual links associated with a view display to a renderable array.
- WorkflowAccessControlHandlerTest::checkAccessProvider in core/
modules/ workflows/ tests/ src/ Kernel/ WorkflowAccessControlHandlerTest.php - Data provider for ::testCheckAccess.
- WorkflowAccessControlHandlerTest::testCheckCreateAccess in core/
modules/ workflows/ tests/ src/ Kernel/ WorkflowAccessControlHandlerTest.php - @covers ::checkCreateAccess[[api-linebreak]]
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.