61 calls to AccessResult::allowedIfHasPermission() in Drupal 8
- AccessResultTest::testCacheContexts in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::addCacheContexts @covers ::resetCacheContexts @covers ::getCacheContexts @covers ::cachePerPermissions @covers ::cachePerUser @covers ::allowedIfHasPermission
- AggregatorFeedBlock::blockAccess in core/
modules/ aggregator/ src/ Plugin/ Block/ AggregatorFeedBlock.php - Indicates whether the block should be shown.
- BaseFieldOverrideAccessControlHandler::checkAccess in core/
lib/ Drupal/ Core/ Field/ BaseFieldOverrideAccessControlHandler.php - Performs access checks.
- BlockContentAccessControlHandler::checkAccess in core/
modules/ block_content/ src/ BlockContentAccessControlHandler.php - Performs access checks.
- CommentAccessControlHandler::checkCreateAccess in core/
modules/ comment/ src/ CommentAccessControlHandler.php - Performs create access checks.
- CommentAccessControlHandler::checkFieldAccess in core/
modules/ comment/ src/ CommentAccessControlHandler.php - Default field access as determined by this access control handler.
- CommentController::replyFormAccess in core/
modules/ comment/ src/ Controller/ CommentController.php - Access check for the reply form.
- CommentFieldItemList::access in core/
modules/ comment/ src/ CommentFieldItemList.php - Checks data value access.
- ContactMessageAccessControlHandler::checkCreateAccess in core/
modules/ contact/ src/ ContactMessageAccessControlHandler.php - Performs create access checks.
- ContactPageAccess::access in core/
modules/ contact/ src/ Access/ ContactPageAccess.php - Checks access to the given user's contact page.
- content_moderation_entity_access in core/
modules/ content_moderation/ content_moderation.module - Implements hook_entity_access().
- EntityAccess::bypassAccessResult in core/
modules/ workspaces/ src/ EntityAccess.php - Checks the 'bypass' permissions.
- EntityAccessControlHandler::checkAccess in core/
lib/ Drupal/ Core/ Entity/ EntityAccessControlHandler.php - Performs access checks.
- EntityAccessControlHandler::checkCreateAccess in core/
lib/ Drupal/ Core/ Entity/ EntityAccessControlHandler.php - Performs create access checks.
- EntityFormDisplayAccessControlHandler::checkAccess in core/
lib/ Drupal/ Core/ Entity/ Entity/ Access/ EntityFormDisplayAccessControlHandler.php - Performs access checks.
- EntityTestAccessControlHandler::checkAccess in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestAccessControlHandler.php - Performs access checks.
- EntityViewDisplayAccessControlHandler::checkAccess in core/
lib/ Drupal/ Core/ Entity/ Entity/ Access/ EntityViewDisplayAccessControlHandler.php - Performs access checks.
- entity_test_entity_field_access in core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module - Implements hook_entity_field_access().
- FeedAccessControlHandler::checkAccess in core/
modules/ aggregator/ src/ FeedAccessControlHandler.php - Performs access checks.
- FeedAccessControlHandler::checkCreateAccess in core/
modules/ aggregator/ src/ FeedAccessControlHandler.php - Performs create access checks.
- FieldStorageConfigAccessControlHandler::checkAccess in core/
modules/ field/ src/ FieldStorageConfigAccessControlHandler.php - Performs access checks.
- FileAccessControlHandler::checkAccess in core/
modules/ file/ src/ FileAccessControlHandler.php - Performs access checks.
- FilterFormatAccessControlHandler::checkAccess in core/
modules/ filter/ src/ FilterFormatAccessControlHandler.php - Performs access checks.
- FormModeAccessCheck::access in core/
modules/ field_ui/ src/ Access/ FormModeAccessCheck.php - Checks access to the form mode.
- ForumBlockBase::blockAccess in core/
modules/ forum/ src/ Plugin/ Block/ ForumBlockBase.php - Indicates whether the block should be shown.
- HelpSearch::access in core/
modules/ help_topics/ src/ Plugin/ Search/ HelpSearch.php - Checks data value access.
- hook_entity_field_access in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Control access to fields.
- hook_jsonapi_entity_filter_access in core/
modules/ jsonapi/ jsonapi.api.php - Controls access when filtering by entity data via JSON:API.
- hook_jsonapi_ENTITY_TYPE_filter_access in core/
modules/ jsonapi/ jsonapi.api.php - Controls access to filtering by entity data via JSON:API.
- jsonapi_jsonapi_aggregator_feed_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'aggregator_feed'.
- jsonapi_jsonapi_comment_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'comment'.
- jsonapi_jsonapi_entity_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_entity_filter_access().
- jsonapi_jsonapi_entity_test_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'entity_test'.
- jsonapi_jsonapi_file_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'file'.
- jsonapi_jsonapi_media_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'media'.
- jsonapi_jsonapi_node_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'node'.
- jsonapi_jsonapi_taxonomy_term_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'taxonomy_term'.
- jsonapi_jsonapi_user_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'user'.
- jsonapi_jsonapi_workspace_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'workspace'.
- LayoutBuilderAccessCheck::access in core/
modules/ layout_builder/ src/ Access/ LayoutBuilderAccessCheck.php - Checks routing access to the layout.
- LayoutSectionAccessCheck::access in core/
modules/ layout_builder/ src/ Access/ LayoutSectionAccessCheck.php - Checks routing access to the layout.
- MediaTypeAccessControlHandler::checkAccess in core/
modules/ media/ src/ MediaTypeAccessControlHandler.php - Performs access checks.
- MenuLinkContentAccessControlHandler::checkAccess in core/
modules/ menu_link_content/ src/ MenuLinkContentAccessControlHandler.php - Performs access checks.
- NodeAccessControlHandler::checkFieldAccess in core/
modules/ node/ src/ NodeAccessControlHandler.php - Default field access as determined by this access control handler.
- NodeSearch::access in core/
modules/ node/ src/ Plugin/ Search/ NodeSearch.php - Checks data value access.
- NodeTypeAccessControlHandler::checkAccess in core/
modules/ node/ src/ NodeTypeAccessControlHandler.php - Performs access checks.
- node_node_access in core/
modules/ node/ node.module - Implements hook_ENTITY_TYPE_access().
- OverridesSectionStorage::access in core/
modules/ layout_builder/ src/ Plugin/ SectionStorage/ OverridesSectionStorage.php - Overrides \Drupal\Core\Access\AccessibleInterface::access().
- SearchBlock::blockAccess in core/
modules/ search/ src/ Plugin/ Block/ SearchBlock.php - Indicates whether the block should be shown.
- ShortcutsBlock::blockAccess in core/
modules/ shortcut/ src/ Plugin/ Block/ ShortcutsBlock.php - Indicates whether the block should be shown.
- ShortcutSetAccessControlHandler::checkAccess in core/
modules/ shortcut/ src/ ShortcutSetAccessControlHandler.php - Performs access checks.
- StatisticsPopularBlock::blockAccess in core/
modules/ statistics/ src/ Plugin/ Block/ StatisticsPopularBlock.php - Indicates whether the block should be shown.
- SyndicateBlock::blockAccess in core/
modules/ node/ src/ Plugin/ Block/ SyndicateBlock.php - Indicates whether the block should be shown.
- SystemTestController::permissionDependentContent in core/
modules/ system/ tests/ modules/ system_test/ src/ Controller/ SystemTestController.php - Shows permission-dependent content.
- TestBlockInstantiation::blockAccess in core/
modules/ block/ tests/ modules/ block_test/ src/ Plugin/ Block/ TestBlockInstantiation.php - Indicates whether the block should be shown.
- user_access_test_entity_create_access in core/
modules/ user/ tests/ modules/ user_access_test/ user_access_test.module - Implements hook_entity_create_access().
- user_access_test_entity_field_access in core/
modules/ user/ tests/ modules/ user_access_test/ user_access_test.module - Implements hook_entity_field_access().
- user_access_test_user_access in core/
modules/ user/ tests/ modules/ user_access_test/ user_access_test.module - Implements hook_ENTITY_TYPE_access() for entity type "user".
- ViewModeAccessCheck::access in core/
modules/ field_ui/ src/ Access/ ViewModeAccessCheck.php - Checks access to the view mode.
- WorkspaceAccessControlHandler::checkAccess in core/
modules/ workspaces/ src/ WorkspaceAccessControlHandler.php - Performs access checks.
- WorkspaceAccessControlHandler::checkCreateAccess in core/
modules/ workspaces/ src/ WorkspaceAccessControlHandler.php - Performs create access checks.