124 calls to AccessResult::allowed() in Drupal 10
- AccessCheck::menuLocalAction8 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::check 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::testCheckNamedRoute in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessManagerTest.php - Tests the checkNamedRoute method.
- AccessResultTest::andOrCacheabilityPropagationProvider in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - Provides a list of access result pairs and operations to test.
- AccessResultTest::testAccessAllowed in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::allowed @covers ::isAllowed @covers ::isForbidden @covers ::isNeutral
- 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
- AccessResultTest::testOrIfCacheabilityMerging in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::orIf
- ActionAjaxTest::access in core/
modules/ action/ tests/ action_form_ajax_test/ src/ Plugin/ Action/ ActionAjaxTest.php - Checks object access.
- BlockComponentRenderArray::onBuildRender in core/
modules/ layout_builder/ src/ EventSubscriber/ BlockComponentRenderArray.php - Builds render arrays for block plugins and sets it on the event.
- BlockComponentRenderArrayTest::testOnBuildRender in core/
modules/ layout_builder/ tests/ src/ Unit/ BlockComponentRenderArrayTest.php - @covers ::onBuildRender
- BlockComponentRenderArrayTest::testOnBuildRenderEmptyBuild in core/
modules/ layout_builder/ tests/ src/ Unit/ BlockComponentRenderArrayTest.php - @covers ::onBuildRender
- BlockComponentRenderArrayTest::testOnBuildRenderEmptyBuildWithCacheTags in core/
modules/ layout_builder/ tests/ src/ Unit/ BlockComponentRenderArrayTest.php - @covers ::onBuildRender
- BlockComponentRenderArrayTest::testOnBuildRenderWithoutPreviewFallbackString in core/
modules/ layout_builder/ tests/ src/ Unit/ BlockComponentRenderArrayTest.php - @covers ::onBuildRender
- BlockContentAccessHandlerTest::testAccess in core/
modules/ block_content/ tests/ src/ Kernel/ BlockContentAccessHandlerTest.php - @covers ::checkAccess
- BlockPluginTrait::blockAccess in core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php - Indicates whether the block should be shown.
- BlockRepositoryTest::providerBlocksConfig in core/
modules/ block/ tests/ src/ Unit/ BlockRepositoryTest.php - BlockRepositoryTest::testGetVisibleBlocksPerRegionWithContext in core/
modules/ block/ tests/ src/ Unit/ BlockRepositoryTest.php - Tests the retrieval of block entities that are context-aware.
- CommentAccessControlHandler::checkAccess in core/
modules/ comment/ src/ CommentAccessControlHandler.php - Performs access checks.
- ConfigTestAccessControlHandler::checkAccess in core/
modules/ config/ tests/ config_test/ src/ ConfigTestAccessControlHandler.php - ConfigTestAccessControlHandler::checkCreateAccess in core/
modules/ config/ tests/ config_test/ src/ ConfigTestAccessControlHandler.php - ContentEntityBaseUnitTest::testAccess in core/
tests/ Drupal/ Tests/ Core/ Entity/ ContentEntityBaseUnitTest.php - @covers ::access
- 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.
- ContentTranslationManageAccessCheckTest::testCreateAccess in core/
modules/ content_translation/ tests/ src/ Unit/ Access/ ContentTranslationManageAccessCheckTest.php - Tests the create access method.
- ContentTranslationOverviewAccess::access in core/
modules/ content_translation/ src/ Access/ ContentTranslationOverviewAccess.php - Checks access to the translation overview for the entity and bundle.
- content_translation_test_entity_access in core/
modules/ content_translation/ tests/ modules/ content_translation_test/ content_translation_test.module - Implements hook_entity_access().
- 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::testAccessTokenPass in core/
tests/ Drupal/ Tests/ Core/ Access/ CsrfAccessCheckTest.php - Tests the access() method with a valid token.
- CsrfRequestHeaderAccessCheck::access in core/
lib/ Drupal/ Core/ Access/ CsrfRequestHeaderAccessCheck.php - Checks access.
- CustomPageExceptionHtmlSubscriberTest::setUp in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ CustomPageExceptionHtmlSubscriberTest.php - CustomPageExceptionHtmlSubscriberTest::testHandleWithPostRequest in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ CustomPageExceptionHtmlSubscriberTest.php - Tests onHandleException with a POST 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.
- DefaultMenuLinkTreeManipulators::checkNodeAccess in core/
lib/ Drupal/ Core/ Menu/ DefaultMenuLinkTreeManipulators.php - Performs access checking for nodes in an optimized way.
- DefaultMenuLinkTreeManipulators::menuLinkCheckAccess in core/
lib/ Drupal/ Core/ Menu/ DefaultMenuLinkTreeManipulators.php - Checks access for one menu link instance.
- DefinedTestAccessCheck::access in core/
modules/ system/ tests/ modules/ router_test_directory/ src/ Access/ DefinedTestAccessCheck.php - Checks access.
- ElementTest::providerVisibleChildren in core/
tests/ Drupal/ Tests/ Core/ Render/ ElementTest.php - Data provider for testVisibleChildren.
- EmailAction::access in core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ EmailAction.php - EntityAccessCheckTest::testAccess in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityAccessCheckTest.php - Tests the method for checking access to routes.
- EntityAccessCheckTest::testAccessWithDifferentRouteParameters in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityAccessCheckTest.php - @covers ::access
- EntityAccessCheckTest::testAccessWithTypePlaceholder in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityAccessCheckTest.php - @covers ::access
- EntityAccessControlHandler::checkFieldAccess in core/
lib/ Drupal/ Core/ Entity/ EntityAccessControlHandler.php - Default field access as determined by this access control handler.
- EntityAccessControlHandler::fieldAccess in core/
lib/ Drupal/ Core/ Entity/ EntityAccessControlHandler.php - Checks access to an operation on a given entity field.
- EntityCreateAccessCheckTest::testAccess in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityCreateAccessCheckTest.php - Tests the method for checking access to routes.
- 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.
- EntityListBuilderTest::testGetOperations in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityListBuilderTest.php - @covers ::getOperations
- EntityPermissionsFormTest::testPermissionsByProvider in core/
modules/ user/ tests/ src/ Unit/ Form/ EntityPermissionsFormTest.php - Tests generating the permissions list.
- EntityTestAccessControlHandler::checkAccess in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestAccessControlHandler.php - Performs access checks.
- EntityUnitTest::testAccess in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityUnitTest.php - @covers ::access
- entity_serialization_test_entity_field_access_alter in core/
modules/ serialization/ tests/ modules/ entity_serialization_test/ entity_serialization_test.module - Implements hook_entity_field_access_alter().
- 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().
- FieldAccessTest::testFieldAccess in core/
tests/ Drupal/ KernelTests/ Core/ Field/ FieldAccessTest.php - Tests hook_entity_field_access() and hook_entity_field_access_alter().
- FieldBlockTest::testBlockAccessEntityAllowedFieldHasValue in core/
modules/ layout_builder/ tests/ src/ Kernel/ FieldBlockTest.php - Tests populated vs empty build.
- FieldBlockTest::testBlockAccessEntityAllowedFieldNotAllowed in core/
modules/ layout_builder/ tests/ src/ Kernel/ FieldBlockTest.php - Tests field access.
- FieldBlockTest::testBlockAccessEntityAllowedNoField in core/
modules/ layout_builder/ tests/ src/ Kernel/ FieldBlockTest.php - Tests fieldable entity without a particular field.
- FieldBlockTest::testBlockAccessEntityAllowedNotFieldable in core/
modules/ layout_builder/ tests/ src/ Kernel/ FieldBlockTest.php - Tests unfieldable entity.
- FieldItemList::defaultAccess in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Contains the default access logic of this field.
- 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.
- FileFormatterBase::checkAccess in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ FileFormatterBase.php - Checks access to the given entity.
- FilterFormatAccessControlHandler::checkAccess in core/
modules/ filter/ src/ FilterFormatAccessControlHandler.php - Performs access checks.
- FilterFormatAccessTest::testFormatPermissions in core/
modules/ filter/ tests/ src/ Functional/ FilterFormatAccessTest.php - Tests the Filter format access permissions functionality.
- FormBuilderTest::providerTestChildAccessInheritance in core/
tests/ Drupal/ Tests/ Core/ Form/ FormBuilderTest.php - Data provider for testChildAccessInheritance.
- GotoAction::access in core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ GotoAction.php - jsonapi_jsonapi_block_content_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'block_content'.
- jsonapi_jsonapi_node_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'node'.
- jsonapi_jsonapi_user_filter_access in core/
modules/ jsonapi/ jsonapi.module - Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'user'.
- 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 - LayoutPreviewAccessAllowed::access in core/
modules/ layout_builder/ src/ Access/ LayoutPreviewAccessAllowed.php - Checks data value access.
- layout_builder_block_content_access in core/
modules/ layout_builder/ layout_builder.module - Implements hook_ENTITY_TYPE_access().
- MediaAccessControlHandlerTest::providerAccess in core/
modules/ media/ tests/ src/ Kernel/ MediaAccessControlHandlerTest.php - Data provider for testAccess().
- MediaAccessControlHandlerTest::providerCreateAccess in core/
modules/ media/ tests/ src/ Kernel/ MediaAccessControlHandlerTest.php - Data provider for testCreateAccess().
- MenuAccessControlHandler::checkAccess in core/
modules/ system/ src/ MenuAccessControlHandler.php - Performs access checks.
- MenuAccessControlHandlerTest::testAccessProvider in core/
modules/ system/ tests/ src/ Kernel/ MenuAccessControlHandlerTest.php - MenuLinkContentAccessControlHandler::checkAccess in core/
modules/ menu_link_content/ src/ MenuLinkContentAccessControlHandler.php - Performs access checks.
- MenuLinkTreeTest::providerTestBuildCacheability in core/
modules/ system/ tests/ src/ Unit/ Menu/ MenuLinkTreeTest.php - Provides the test cases to test for ::testBuildCacheability().
- MessageAction::access in core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ MessageAction.php - MockQuickEditEntityFieldAccessCheck::accessEditEntityField in core/
modules/ quickedit/ tests/ modules/ src/ MockQuickEditEntityFieldAccessCheck.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.
- NodeGrantDatabaseStorage::access in core/
modules/ node/ src/ NodeGrantDatabaseStorage.php - node_access_test_node_access in core/
modules/ node/ tests/ modules/ node_access_test/ node_access_test.module - Implements hook_node_access().
- NoType::access in core/
modules/ system/ tests/ modules/ action_test/ src/ Plugin/ Action/ NoType.php - Checks object access.
- PathFieldItemList::defaultAccess in core/
modules/ path/ src/ Plugin/ Field/ FieldType/ PathFieldItemList.php - Contains the default access logic of this field.
- QuickEditEntityFieldAccessCheckTest::providerTestAccess in core/
modules/ quickedit/ tests/ src/ Unit/ Access/ QuickEditEntityFieldAccessCheckTest.php - Provides test data for testAccess().
- RendererTest::providerAccessValues in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - Provides a list of both booleans.
- RendererTest::testRenderAccessCacheabilityDependencyInheritance in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - @covers ::render @covers ::doRender
- RendererTest::testRenderWithAccessControllerResolved in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - @covers ::render @covers ::doRender
- RoleAccessCheck::access in core/
modules/ user/ src/ Access/ RoleAccessCheck.php - Checks access.
- RoleAccessCheckTest::testRoleAccess in core/
tests/ Drupal/ Tests/ Core/ Route/ RoleAccessCheckTest.php - Tests role requirements on routes.
- SearchPageAccessControlHandler::checkAccess in core/
modules/ search/ src/ SearchPageAccessControlHandler.php - Performs access checks.
- SectionRenderTest::testContextAwareBlock in core/
modules/ layout_builder/ tests/ src/ Unit/ SectionRenderTest.php - @covers ::toRenderArray
- SectionRenderTest::testToRenderArray in core/
modules/ layout_builder/ tests/ src/ Unit/ SectionRenderTest.php - @covers ::toRenderArray
- ShortcutSetAccessControlHandler::checkAccess in core/
modules/ shortcut/ src/ ShortcutSetAccessControlHandler.php - Performs access checks.
- shortcut_set_edit_access in core/
modules/ shortcut/ shortcut.module - Access callback for editing a shortcut set.
- shortcut_set_switch_access in core/
modules/ shortcut/ shortcut.module - Access callback for switching the shortcut set assigned to a user account.
- SimpleConfigSectionStorage::access in core/
modules/ layout_builder/ tests/ modules/ layout_builder_test/ src/ Plugin/ SectionStorage/ SimpleConfigSectionStorage.php - Overrides \Drupal\Core\Access\AccessibleInterface::access().
- TermAccessControlHandler::checkAccess in core/
modules/ taxonomy/ src/ TermAccessControlHandler.php - Performs access checks.
- TestAccessBlock::blockAccess in core/
modules/ block/ tests/ modules/ block_test/ src/ Plugin/ Block/ TestAccessBlock.php - Indicates whether the block should be shown.
- TestAccessClass::accessResultAllowed in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - Url::access in core/
lib/ Drupal/ Core/ Url.php - Checks this Url object against applicable access check services.
- 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.
- UserAccessControlHandlerTest::setUp in core/
modules/ user/ tests/ src/ Unit/ UserAccessControlHandlerTest.php - 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.
- ViewsBlockBase::blockAccess in core/
modules/ views/ src/ Plugin/ Block/ ViewsBlockBase.php - WorkflowAccessControlHandlerTest::checkAccessProvider in core/
modules/ workflows/ tests/ src/ Kernel/ WorkflowAccessControlHandlerTest.php - Data provider for ::testCheckAccess.
- WorkflowAccessControlHandlerTest::testCheckCreateAccess in core/
modules/ workflows/ tests/ src/ Kernel/ WorkflowAccessControlHandlerTest.php - @covers ::checkCreateAccess
- WorkflowStateTransitionOperationsAccessCheckTest::testAccess in core/
modules/ workflows/ tests/ src/ Unit/ WorkflowStateTransitionOperationsAccessCheckTest.php - Tests the access method correctly proxies to the entity access system.
- WorkspaceAccessControlHandler::checkAccess in core/
modules/ workspaces/ src/ WorkspaceAccessControlHandler.php - Performs access checks.