You are here

79 calls to AccessResult::forbidden() in Drupal 8

AccessAwareRouterTest::testCheckAccessResultWithReason in core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php
Tests the matchRequest() function for access denied with reason message.
AccessAwareRouterTest::testMatchRequestDenied in core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php
Tests the matchRequest() function for access denied.
AccessGroupAndTest::testGroups in core/modules/block_content/tests/src/Unit/Access/AccessGroupAndTest.php
@covers \Drupal\block_content\Access\AccessGroupAnd
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::testCheckNamedRouteWithUpcastedValues in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Tests the checkNamedRoute with upcasted values.
AccessResult::andIf in core/lib/Drupal/Core/Access/AccessResult.php
Combine this access result with another using AND.
AccessResult::forbiddenIf in core/lib/Drupal/Core/Access/AccessResult.php
Creates a forbidden or neutral access result.
AccessResult::orIf in core/lib/Drupal/Core/Access/AccessResult.php
Combine this access result with another using OR.
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::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
Indicates whether the block should be shown.
BlockRepositoryTest::providerBlocksConfig in core/modules/block/tests/src/Unit/BlockRepositoryTest.php
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.
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.
CsrfAccessCheck::access in core/lib/Drupal/Core/Access/CsrfAccessCheck.php
Checks access based on a CSRF token for the request.
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
Test the access method.
DefaultMenuLinkTreeManipulatorsTest::testCheckAccess in core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php
Tests the checkAccess() tree manipulator.
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.
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.
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().
FieldBlock::blockAccess in core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
Indicates whether the block should be shown.
FieldBlockTest::providerTestBlockAccessNotAllowed in core/modules/layout_builder/tests/src/Kernel/FieldBlockTest.php
Provides test data for ::testBlockAccessEntityNotAllowed().
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
Indicates whether the block should be shown.
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
Indicates whether the block should be shown.
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().
LayoutPreviewAccessAllowed::access in core/modules/layout_builder/src/Access/LayoutPreviewAccessAllowed.php
Checks data value access.
LayoutSectionAccessCheck::access in core/modules/layout_builder/src/Access/LayoutSectionAccessCheck.php
Checks routing access to the layout.
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().
MediaLibraryFieldWidgetOpener::checkAccess in core/modules/media_library/src/MediaLibraryFieldWidgetOpener.php
Checks media library access.
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().
ModerationOptOutPublish::access in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutPublish.php
Checks object access.
ModerationOptOutUnpublish::access in core/modules/content_moderation/src/Plugin/Action/ModerationOptOutUnpublish.php
Checks object access.
NodeAccessControlHandler::checkFieldAccess in core/modules/node/src/NodeAccessControlHandler.php
Default field access as determined by this access control handler.
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.
SectionRenderTest::testToRenderArrayAccessDenied in core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php
@covers ::toRenderArray
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
Indicates whether the block should be shown.
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
Indicates whether the block should be shown.
WorkflowCustomAccessType::workflowAccess in core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php
Implements hook_ENTITY_TYPE_access().
WorkspaceAccessTest::testPublishWorkspaceAccess in core/modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php
Tests workspace publishing access.