62 calls to AccessResult::allowedIfHasPermission() in Drupal 10
- AccessResultTest::testCacheContexts in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::addCacheContexts @covers ::resetCacheContexts @covers ::getCacheContexts @covers ::cachePerPermissions @covers ::cachePerUser @covers ::allowedIfHasPermission
- 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.
- ContactFormAccessControlHandler::checkAccess in core/
modules/ contact/ src/ ContactFormAccessControlHandler.php - Performs access checks.
- 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.
- ContentTranslationHandler::getTranslationAccess in core/
modules/ content_translation/ src/ ContentTranslationHandler.php - ContentTranslationOverviewAccess::access in core/
modules/ content_translation/ src/ Access/ ContentTranslationOverviewAccess.php - Checks access to the translation overview for the entity and bundle.
- 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 - 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 - entity_test_entity_field_access in core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module - Implements hook_entity_field_access().
- 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 - HelpSearch::access in core/
modules/ help_topics/ src/ Plugin/ Search/ HelpSearch.php - 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_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_shortcut_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'shortcut'.
- 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.
- MediaLibraryUiBuilder::checkAccess in core/
modules/ media_library/ src/ MediaLibraryUiBuilder.php - Check access to the media library.
- 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 - 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 - SearchBlock::blockAccess in core/
modules/ search/ src/ Plugin/ Block/ SearchBlock.php - ShortcutsBlock::blockAccess in core/
modules/ shortcut/ src/ Plugin/ Block/ ShortcutsBlock.php - ShortcutSetAccessControlHandler::checkAccess in core/
modules/ shortcut/ src/ ShortcutSetAccessControlHandler.php - Performs access checks.
- ShortcutSetAccessControlHandler::checkCreateAccess in core/
modules/ shortcut/ src/ ShortcutSetAccessControlHandler.php - Performs create access checks.
- StatisticsPopularBlock::blockAccess in core/
modules/ statistics/ src/ Plugin/ Block/ StatisticsPopularBlock.php - SyndicateBlock::blockAccess in core/
modules/ node/ src/ Plugin/ Block/ SyndicateBlock.php - 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.
- UserAccessControlHandler::checkAccess in core/
modules/ user/ src/ UserAccessControlHandler.php - Performs access checks.
- 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.