You are here

108 calls to AccessResult::forbidden() in Drupal 10

AccessCheck::menuLocalAction7 in core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php
AccessGroupAndTest::testGroups in core/modules/block_content/tests/src/Unit/Access/AccessGroupAndTest.php
@covers \Drupal\block_content\Access\AccessGroupAnd
AccessManager::checkNamedRoute in core/lib/Drupal/Core/Access/AccessManager.php
AccessManagerTest::providerTestCheckConjunctions in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Provides data for the conjunction test.
AccessManagerTest::testCheck in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Tests \Drupal\Core\Access\AccessManager::check().
AccessManagerTest::testCheckNamedRouteWithDefaultValue in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Tests the checkNamedRoute with default values.
AccessManagerTest::testCheckNamedRouteWithNonExistingRoute in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Tests checkNamedRoute given an invalid/non existing route name.
AccessManagerTest::testCheckNamedRouteWithUpcastedValues in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Tests the checkNamedRoute with upcasted values.
AccessResultTest::andOrCacheabilityPropagationProvider in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
Provides a list of access result pairs and operations to test.
AccessResultTest::testAccessForbidden in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::forbidden @covers ::isAllowed @covers ::isForbidden @covers ::isNeutral
AccessResultTest::testAccessForbiddenReason in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::forbidden
AccessResultTest::testAndIf in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::andIf
AccessResultTest::testInheritCacheability in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::inheritCacheability
AccessResultTest::testOrIf in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::orIf
BlockAccessControlHandler::checkAccess in core/modules/block/src/BlockAccessControlHandler.php
Performs access checks.
BlockComponentRenderArrayTest::testOnBuildRenderDenied in core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php
@covers ::onBuildRender
BlockContentAccessControlHandler::checkAccess in core/modules/block_content/src/BlockContentAccessControlHandler.php
Performs access checks.
BlockContentAccessHandlerTest::testAccess in core/modules/block_content/tests/src/Kernel/BlockContentAccessHandlerTest.php
@covers ::checkAccess
BlockContentBlock::blockAccess in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
BlockRepositoryTest::providerBlocksConfig in core/modules/block/tests/src/Unit/BlockRepositoryTest.php
CKEditor5MediaController::access in core/modules/ckeditor5/src/Controller/CKEditor5MediaController.php
Additional access check for ::isMediaImage().
CommentAccessControlHandler::checkFieldAccess in core/modules/comment/src/CommentAccessControlHandler.php
Default field access as determined by this access control handler.
ConfigTranslationFormAccess::access in core/modules/config_translation/src/Access/ConfigTranslationFormAccess.php
Checks access to the overview based on permissions and translatability.
ContactPageAccess::access in core/modules/contact/src/Access/ContactPageAccess.php
Checks access to the given user's contact page.
ContentModerationStateAccessControlHandler::checkAccess in core/modules/content_moderation/src/ContentModerationStateAccessControlHandler.php
Performs access checks.
ContentModerationStateAccessControlHandler::checkCreateAccess in core/modules/content_moderation/src/ContentModerationStateAccessControlHandler.php
Performs create access checks.
ContentTranslationDeleteAccess::checkAccess in core/modules/content_translation/src/Access/ContentTranslationDeleteAccess.php
Checks access to translation deletion for the specified entity.
ContentTranslationManageAccessCheck::access in core/modules/content_translation/src/Access/ContentTranslationManageAccessCheck.php
Checks translation access for the entity and operation on the given route.
content_moderation_entity_access in core/modules/content_moderation/content_moderation.module
Implements hook_entity_access().
content_moderation_entity_field_access in core/modules/content_moderation/content_moderation.module
Implements hook_entity_field_access().
content_moderation_workspace_access in core/modules/content_moderation/content_moderation.module
Implements hook_ENTITY_TYPE_access() for the 'workspace' entity type.
CronAccessCheck::access in core/modules/system/src/Access/CronAccessCheck.php
Checks access.
CsrfAccessCheck::access in core/lib/Drupal/Core/Access/CsrfAccessCheck.php
Checks access based on a CSRF token for the request.
CsrfAccessCheckTest::testCsrfTokenInvalid in core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php
@covers ::access
CsrfAccessCheckTest::testCsrfTokenMissing in core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php
@covers ::access
CsrfRequestHeaderAccessCheck::access in core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php
Checks access.
CustomPageExceptionHtmlSubscriberTest::testHandleWithGetRequest in core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php
Tests onHandleException with a GET request.
DateFormatAccessControlHandler::checkAccess in core/modules/system/src/DateFormatAccessControlHandler.php
Performs access checks.
DateFormatAccessControlHandlerTest::testAccessProvider in core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php
DbUpdateAccessCheck::access in core/modules/system/src/Access/DbUpdateAccessCheck.php
Checks access for update routes.
DefaultAccessCheck::access in core/lib/Drupal/Core/Access/DefaultAccessCheck.php
Checks access to the route based on the _access parameter.
DefaultAccessCheckTest::testAccess in core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php
Tests the access method.
DefinedTestAccessCheck::access in core/modules/system/tests/modules/router_test_directory/src/Access/DefinedTestAccessCheck.php
Checks access.
DependentAccessTest::setUp in core/modules/block_content/tests/src/Unit/Access/DependentAccessTest.php
ElementTest::providerVisibleChildren in core/tests/Drupal/Tests/Core/Render/ElementTest.php
Data provider for testVisibleChildren.
EntityAccessControlHandler::checkAccess in core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
Performs access checks.
EntityAccessControlHandler::fieldAccess in core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php
Checks access to an operation on a given entity field.
EntityDeleteMultipleAccessCheck::access in core/lib/Drupal/Core/Entity/EntityDeleteMultipleAccessCheck.php
Checks if the user has delete access for at least one item of the store.
EntityPermissionsForm::access in core/modules/user/src/Form/EntityPermissionsForm.php
Checks that there are permissions to be managed.
EntityTestAccessControlHandler::checkAccess in core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php
Performs access checks.
entity_test_entity_access in core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_entity_access().
entity_test_entity_field_access in core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_entity_field_access().
entity_test_entity_field_access_alter in core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_entity_field_access_alter().
FieldAccessTest::testFieldAccess in core/tests/Drupal/KernelTests/Core/Field/FieldAccessTest.php
Tests hook_entity_field_access() and hook_entity_field_access_alter().
FieldBlockTest::providerTestBlockAccessNotAllowed in core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php
Provides test data for ::testBlockAccessEntityNotAllowed().
FieldStorageConfigAccessControlHandler::checkAccess in core/modules/field/src/FieldStorageConfigAccessControlHandler.php
Performs access checks.
field_test_entity_field_access in core/modules/field/tests/modules/field_test/field_test.field.inc
Implements hook_entity_field_access().
FileAccessControlHandler::checkAccess in core/modules/file/src/FileAccessControlHandler.php
Performs access checks.
FileAccessControlHandler::checkFieldAccess in core/modules/file/src/FileAccessControlHandler.php
Default field access as determined by this access control handler.
FilterFormatAccessControlHandler::checkAccess in core/modules/filter/src/FilterFormatAccessControlHandler.php
Performs access checks.
FormBuilderTest::providerTestChildAccessInheritance in core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
Data provider for testChildAccessInheritance.
image_access_test_hidden_entity_field_access in core/modules/image/tests/modules/image_access_test_hidden/image_access_test_hidden.module
Implements hook_entity_field_access().
IncludeResolver::resolveIncludeTree in core/modules/jsonapi/src/IncludeResolver.php
Receives a tree of include field names and resolves resources for it.
InlineBlock::blockAccess in core/modules/layout_builder/src/Plugin/Block/InlineBlock.php
jsonapi_jsonapi_node_filter_access in core/modules/jsonapi/jsonapi.module
Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'node'.
jsonapi_test_field_access_entity_field_access in core/modules/jsonapi/tests/modules/jsonapi_test_field_access/jsonapi_test_field_access.module
Implements hook_entity_field_access().
LanguageBlock::blockAccess in core/modules/language/src/Plugin/Block/LanguageBlock.php
language_entity_field_access_test_entity_field_access in core/modules/language/tests/language_entity_field_access_test/language_entity_field_access_test.module
Implements hook_entity_field_access().
LatestRevisionCheck::access in core/modules/content_moderation/src/Access/LatestRevisionCheck.php
Checks that there is a pending revision available.
LayoutPreviewAccessAllowed::access in core/modules/layout_builder/src/Access/LayoutPreviewAccessAllowed.php
Checks data value access.
LayoutSectionItemList::defaultAccess in core/modules/layout_builder/src/Field/LayoutSectionItemList.php
Overrides \Drupal\Core\Field\FieldItemListInterface::defaultAccess().
layout_builder_block_content_access in core/modules/layout_builder/layout_builder.module
Implements hook_ENTITY_TYPE_access().
LocalActionManagerTest::getActionsForRouteProvider in core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php
MediaLibraryEditorOpener::checkAccess in core/modules/media_library/src/MediaLibraryEditorOpener.php
MediaLibraryFieldWidgetOpener::checkAccess in core/modules/media_library/src/MediaLibraryFieldWidgetOpener.php
MediaLibraryUiBuilder::checkAccess in core/modules/media_library/src/MediaLibraryUiBuilder.php
Check access to the media library.
media_library_image_style_access in core/modules/media_library/media_library.module
Implements hook_ENTITY_TYPE_access().
MenuAccessControlHandler::checkAccess in core/modules/system/src/MenuAccessControlHandler.php
Performs access checks.
MenuAccessControlHandlerTest::testAccessProvider in core/modules/system/tests/src/Kernel/MenuAccessControlHandlerTest.php
MockQuickEditEntityFieldAccessCheck::accessEditEntityField in core/modules/quickedit/tests/modules/src/MockQuickEditEntityFieldAccessCheck.php
ModerationOptOutPublish::access in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutPublish.php
ModerationOptOutUnpublish::access in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutUnpublish.php
NodeAccessControlHandler::access in core/modules/node/src/NodeAccessControlHandler.php
Checks access to an operation on a given entity or entity translation.
NodeAccessControlHandler::checkAccess in core/modules/node/src/NodeAccessControlHandler.php
Performs access checks.
NodeAccessControlHandler::checkFieldAccess in core/modules/node/src/NodeAccessControlHandler.php
Default field access as determined by this access control handler.
NodeAccessControlHandler::createAccess in core/modules/node/src/NodeAccessControlHandler.php
Checks access to create an entity.
NodeTypeAccessControlHandler::checkAccess in core/modules/node/src/NodeTypeAccessControlHandler.php
Performs access checks.
node_access_test_node_access in core/modules/node/tests/modules/node_access_test/node_access_test.module
Implements hook_node_access().
QuickEditEntityFieldAccessCheck::access in core/modules/quickedit/src/Access/QuickEditEntityFieldAccessCheck.php
Checks Quick Edit access to the field.
QuickEditEntityFieldAccessCheckTest::testAccessForbidden in core/modules/quickedit/tests/src/Unit/Access/QuickEditEntityFieldAccessCheckTest.php
Tests checking access to routes that result in AccessResult::isForbidden().
RendererTest::providerAccessValues in core/tests/Drupal/Tests/Core/Render/RendererTest.php
Provides a list of both booleans.
RendererTest::testRenderWithAccessControllerResolved in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender
rest_test_entity_field_access in core/modules/rest/tests/modules/rest_test/rest_test.module
Implements hook_entity_field_access().
RoleAccessControlHandler::checkAccess in core/modules/user/src/RoleAccessControlHandler.php
Performs access checks.
SearchPageAccessControlHandler::checkAccess in core/modules/search/src/SearchPageAccessControlHandler.php
Performs access checks.
SectionRenderTest::testToRenderArrayAccessDenied in core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php
@covers ::toRenderArray
TestAccessBlock::blockAccess in core/modules/block/tests/modules/block_test/src/Plugin/Block/TestAccessBlock.php
Indicates whether the block should be shown.
TestAccessClass::accessResultForbidden in core/tests/Drupal/Tests/Core/Render/RendererTest.php
UserAccessControlHandler::checkAccess in core/modules/user/src/UserAccessControlHandler.php
Performs access checks.
UserAccessControlHandler::checkFieldAccess in core/modules/user/src/UserAccessControlHandler.php
Default field access as determined by this access control handler.
UserLoginBlock::blockAccess in core/modules/user/src/Plugin/Block/UserLoginBlock.php
UserPermissionsModuleSpecificForm::access in core/modules/user/src/Form/UserPermissionsModuleSpecificForm.php
Checks that at least one module defines permissions.
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".
ViewsBlockBase::blockAccess in core/modules/views/src/Plugin/Block/ViewsBlockBase.php
views_entity_test_entity_field_access in core/modules/views/tests/modules/views_entity_test/views_entity_test.module
Implements hook_entity_field_access().
WorkflowCustomAccessType::workflowAccess in core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php
Implements hook_ENTITY_TYPE_access().
WorkspaceAccessControlHandler::checkAccess in core/modules/workspaces/src/WorkspaceAccessControlHandler.php
Performs access checks.
WorkspaceAccessTest::testPublishWorkspaceAccess in core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php
Tests workspace publishing access.