58 string references to user.permissions in Zircon Profile 8
- 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 @covers ::resetCacheContexts @covers ::getCacheContexts @covers ::cachePerPermissions @covers ::cachePerUser @covers ::allowedIfHasPermission
- AccessResultTest::testInheritCacheability in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::inheritCacheability
- AccessResultTest::testOrIfCacheabilityMerging in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::orIf
- 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/ src/ Tests/ Cache/ AssertPageCacheContextsAndTagsTrait.php - Ensures that some cache contexts are present in the current response.
- BlockContentCacheTagsTest::testBlock in core/
modules/ block_content/ src/ Tests/ BlockContentCacheTagsTest.php - Tests that the block is cached with the correct contexts and tags.
- BlockViewBuilderTest::assertBlockRenderedWithExpectedCacheability in core/
modules/ block/ src/ Tests/ BlockViewBuilderTest.php - Asserts that a block is built/rendered/cached with expected cacheability.
- CacheContextOptimizationTest::testUserPermissionCacheContextOptimization in core/
modules/ system/ src/ Tests/ Cache/ CacheContextOptimizationTest.php - Ensures that 'user.permissions' cache context is able to define cache tags.
- 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/ src/ Tests/ 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().
- ContactController::contactPersonalPage in core/
modules/ contact/ src/ Controller/ ContactController.php - Form constructor for the personal contact form.
- ContactController::contactSitePage in core/
modules/ contact/ src/ Controller/ ContactController.php - Presents the site-wide contact form.
- ContentTranslationWorkflowsTest::testWorkflows in core/
modules/ content_translation/ src/ Tests/ ContentTranslationWorkflowsTest.php - Test simple and editorial translation workflows.
- contextual_toolbar in core/
modules/ contextual/ contextual.module - Implements hook_toolbar().
- DisplayPathTest::testMenuOptions in core/
modules/ views_ui/ src/ Tests/ DisplayPathTest.php - Tests the menu and tab option form.
- EntityCacheTagsTestBase::testReferencedEntity in core/
modules/ system/ src/ Tests/ Entity/ EntityCacheTagsTestBase.php - Tests cache tags presence and invalidation of the entity when referenced.
- EntityListBuilderTest::testCacheContexts in core/
modules/ system/ src/ Tests/ Entity/ EntityListBuilderTest.php - Tests that the correct cache contexts are set.
- EntityReferenceFormatterTest::testLabelFormatter in core/
modules/ field/ src/ Tests/ EntityReference/ EntityReferenceFormatterTest.php - Tests the label formatter.
- EntityWithUriCacheTagsTestBase::testEntityUri in core/
modules/ system/ src/ Tests/ Entity/ EntityWithUriCacheTagsTestBase.php - Tests cache tags presence and invalidation of the entity at its URI.
- FilterAPITest::testProcessedTextElement in core/
modules/ filter/ src/ Tests/ FilterAPITest.php - Tests the 'processed_text' element.
- FilterFormatAccessTest::testFormatPermissions in core/
modules/ filter/ src/ Tests/ 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/ src/ Tests/ Views/ FrontPageTest.php - Tests the cache tags on the front page.
- GlossaryTest::testGlossaryView in core/
modules/ views/ src/ Tests/ GlossaryTest.php - Tests the default glossary view.
- LocalTaskManagerTest::setupNullCacheabilityMetadataValidation in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskManagerTest.php - LocalTaskManagerTest::testGetTasksBuildWithCacheabilityMetadata in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalTaskManagerTest.php - @covers ::getTasksBuild
- MenuLinkContentCacheabilityBubblingTest::testOutboundPathAndRouteProcessing in core/
modules/ menu_link_content/ src/ Tests/ MenuLinkContentCacheabilityBubblingTest.php - Tests bubbleable metadata of menu links' outbound route/path processing.
- MenuTest::testUnpublishedNodeMenuItem in core/
modules/ menu_ui/ src/ Tests/ MenuTest.php - Tests that menu items pointing to unpublished nodes are editable.
- ModulesListForm::create in core/
modules/ system/ src/ Form/ ModulesListForm.php - Instantiates a new instance of this class.
- NodeListBuilderTest::testCacheContexts in core/
modules/ node/ src/ Tests/ NodeListBuilderTest.php - Tests that the correct cache contexts are set.
- NodeTypeTest::testNodeTypeCreation in core/
modules/ node/ src/ Tests/ NodeTypeTest.php - Tests creating a content type programmatically and via a form.
- PageCacheTest::testPageCacheAnonymousRolePermissions in core/
modules/ page_cache/ src/ Tests/ PageCacheTest.php - Tests the automatic presence of the anonymous role's cache tag.
- PageRenderTest::assertPageRenderHookExceptions in core/
modules/ system/ src/ Tests/ 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.
- RenderCacheIntegrationTest::testViewAddCacheMetadata in core/
modules/ views/ src/ Tests/ RenderCacheIntegrationTest.php - Ensures that saving a view calculates the cache contexts.
- RenderCacheTest::testUser1PermissionContext in core/
modules/ system/ src/ Tests/ Render/ RenderCacheTest.php - Tests that user 1 has a different permission context with the same roles.
- RouterTest::testFinishResponseSubscriber in core/
modules/ system/ src/ Tests/ Routing/ RouterTest.php - Confirms that our FinishResponseSubscriber logic works properly.
- RowRenderCacheTest::doTestRenderedOutput in core/
modules/ views/ src/ Tests/ Plugin/ RowRenderCacheTest.php - Check whether the rendered output matches expectations.
- statistics_node_links_alter in core/
modules/ statistics/ statistics.module - Implements hook_node_links_alter().
- system_get_module_admin_tasks in core/
modules/ system/ system.module - Generate a list of tasks offered by a specified module.
- ToolbarCacheContextsTest::testToolbarCacheContextsCaller in core/
modules/ toolbar/ src/ Tests/ ToolbarCacheContextsTest.php - Tests toolbar cache contexts.
- toolbar_page_top in core/
modules/ toolbar/ toolbar.module - Implements hook_page_top().
- tour_toolbar in core/
modules/ tour/ tour.module - Implements hook_toolbar().
- UrlTest::testLinkBubbleableMetadata in core/
modules/ system/ src/ Tests/ 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.