97 calls to AccessResult::neutral()
- AccessGroupAnd::access in core/
modules/ block_content/ src/ Access/ AccessGroupAnd.php - Checks data value access.
- 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().
- AccessResult::allowedIf in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Creates an allowed or neutral access result.
- 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::testAndIf in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - @covers ::andIf
- AccessResultTest::testConstruction in core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php - Tests the construction of an AccessResult object.
- 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
- ActiveWorkspaceCheck::access in core/
modules/ workspaces/ src/ Access/ ActiveWorkspaceCheck.php - Checks access.
- ContentTranslationManageAccessCheck::access in core/
modules/ content_translation/ src/ Access/ ContentTranslationManageAccessCheck.php - Checks translation access for the entity and operation on the given route.
- 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().
- content_moderation_entity_field_access in core/
modules/ content_moderation/ content_moderation.module - Implements hook_entity_field_access().
- content_translation_test_entity_access in core/
modules/ content_translation/ tests/ modules/ content_translation_test/ content_translation_test.module - Implements hook_entity_access().
- CustomAccessCheckTest::testAccess in core/
tests/ Drupal/ Tests/ Core/ Access/ CustomAccessCheckTest.php - Tests the access method.
- 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::collectNodeLinks in core/
lib/ Drupal/ Core/ Menu/ DefaultMenuLinkTreeManipulators.php - Collects the node links in the menu tree.
- DefaultMenuLinkTreeManipulatorsTest::testCheckAccess in core/
tests/ Drupal/ Tests/ Core/ Menu/ DefaultMenuLinkTreeManipulatorsTest.php - Tests the checkAccess() tree manipulator.
- DefaultMenuLinkTreeManipulatorsTest::testCheckNodeAccess in core/
tests/ Drupal/ Tests/ Core/ Menu/ DefaultMenuLinkTreeManipulatorsTest.php - Tests the optimized node access checking.
- 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 - EntityAccess::entityCreateAccess in core/
modules/ workspaces/ src/ EntityAccess.php - Implements a hook bridge for hook_entity_create_access().
- EntityAccess::entityOperationAccess in core/
modules/ workspaces/ src/ EntityAccess.php - Implements a hook bridge for hook_entity_access().
- EntityAccessCheck::access in core/
lib/ Drupal/ Core/ Entity/ EntityAccessCheck.php - Checks access to the entity operation on the given route.
- EntityAccessCheckTest::testAccessWithDifferentRouteParameters in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityAccessCheckTest.php - @covers ::access
- 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.
- EntityAccessControlHandler::processAccessHookResults in core/
lib/ Drupal/ Core/ Entity/ EntityAccessControlHandler.php - Determines entity access.
- EntityCreateAccessCheck::access in core/
lib/ Drupal/ Core/ Entity/ EntityCreateAccessCheck.php - Checks access to create the entity type and bundle for the given route.
- EntityCreateAccessCheckTest::testAccess in core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityCreateAccessCheckTest.php - Tests the method for checking access to routes.
- EntityCreateAnyAccessCheck::access in core/
lib/ Drupal/ Core/ Entity/ EntityCreateAnyAccessCheck.php - Checks access to create an entity of any bundle for the given route.
- 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.
- 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.
- EntityTestRevlogAccessControlHandler::checkAccess in core/
modules/ system/ tests/ modules/ entity_test_revlog/ src/ EntityTestRevlogAccessControlHandler.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_create_access in core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module - Implements hook_entity_create_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_test_access in core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module - Implements hook_ENTITY_TYPE_access() for 'entity_test'.
- entity_test_entity_test_create_access in core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module - Implements hook_ENTITY_TYPE_create_access() for 'entity_test'.
- FieldBlockTest::providerTestBlockAccessNotAllowed in core/
modules/ layout_builder/ tests/ src/ Kernel/ FieldBlockTest.php - Provides test data for ::testBlockAccessEntityNotAllowed().
- FieldResolver::getFieldAccess in core/
modules/ jsonapi/ src/ Context/ FieldResolver.php - Gets the field access result for the 'view' operation.
- FieldReuseAccessCheck::access in core/
modules/ field_ui/ src/ Access/ FieldReuseAccessCheck.php - Checks access to the reuse existing fields form.
- FileAccessControlHandler::checkAccess in core/
modules/ file/ src/ FileAccessControlHandler.php - Performs access checks.
- FileAccessControlHandler::checkCreateAccess in core/
modules/ file/ src/ FileAccessControlHandler.php - Performs create 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.
- hook_block_access in core/
modules/ block/ block.api.php - Control access to a block instance.
- hook_entity_access in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Control entity operation access.
- hook_entity_create_access in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Control entity create access.
- hook_entity_field_access in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Control access to fields.
- hook_ENTITY_TYPE_access in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Control entity operation access for a specific entity type.
- hook_ENTITY_TYPE_create_access in core/
lib/ Drupal/ Core/ Entity/ entity.api.php - Control entity create access for a specific entity type.
- hook_jsonapi_entity_field_filter_access in core/
modules/ jsonapi/ jsonapi.api.php - Restricts filtering access to the given field.
- 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().
- 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().
- jsonapi_test_field_filter_access_jsonapi_entity_field_filter_access in core/
modules/ jsonapi/ tests/ modules/ jsonapi_test_field_filter_access/ jsonapi_test_field_filter_access.module - Implements hook_jsonapi_entity_field_field_access().
- LanguageAccessControlHandler::checkAccess in core/
modules/ language/ src/ LanguageAccessControlHandler.php - Performs access checks.
- language_entity_field_access in core/
modules/ language/ language.module - Implements hook_entity_field_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().
- media_entity_access in core/
modules/ media/ media.module - Implements hook_entity_access().
- media_library_test_media_create_access in core/
modules/ media_library/ tests/ modules/ media_library_test/ media_library_test.module - Implements hook_ENTITY_TYPE_create_access().
- MenuLinkTreeTest::providerTestBuildCacheability in core/
modules/ system/ tests/ src/ Unit/ Menu/ MenuLinkTreeTest.php - Provides the test cases to test for ::testBuildCacheability().
- NodeGrantDatabaseStorage::access in core/
modules/ node/ src/ NodeGrantDatabaseStorage.php - NodeOperationAccessTest::testRevisionOperations in core/
modules/ node/ tests/ src/ Unit/ NodeOperationAccessTest.php - Tests revision operations.
- node_node_access in core/
modules/ node/ node.module - Implements hook_ENTITY_TYPE_access().
- PermissionAccessCheck::access in core/
modules/ user/ src/ Access/ PermissionAccessCheck.php - Checks access.
- RelationshipRouteAccessCheck::access in core/
modules/ jsonapi/ src/ Access/ RelationshipRouteAccessCheck.php - Checks access to the relationship field on the given route.
- rest_test_entity_field_access in core/
modules/ rest/ tests/ modules/ rest_test/ rest_test.module - Implements hook_entity_field_access().
- ShortcutAccessControlHandler::checkCreateAccess in core/
modules/ shortcut/ src/ ShortcutAccessControlHandler.php - Performs create access checks.
- ShortcutSetAccessControlHandler::checkAccess in core/
modules/ shortcut/ src/ ShortcutSetAccessControlHandler.php - Performs access checks.
- SystemAdminMenuBlockAccessCheck::access in core/
modules/ system/ src/ Access/ SystemAdminMenuBlockAccessCheck.php - Checks access.
- SystemAdminMenuBlockAccessCheck::hasAccessToChildMenuItems in core/
modules/ system/ src/ Access/ SystemAdminMenuBlockAccessCheck.php - Check that the given route has access to child routes.
- TemporaryQueryGuard::getAccessResultsFromEntityFilterHook in core/
modules/ jsonapi/ src/ Access/ TemporaryQueryGuard.php - Gets the combined access result for each JSONAPI_FILTER_AMONG_* subset.
- TestAccessCheck::access in core/
modules/ system/ tests/ modules/ router_test_directory/ src/ Access/ TestAccessCheck.php - Checks access.
- TestController::accessDeny in core/
tests/ Drupal/ Tests/ Core/ Access/ CustomAccessCheckTest.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.
- 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.
- 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().
- WorkflowStateTransitionOperationsAccessCheck::access in core/
modules/ workflows/ src/ WorkflowStateTransitionOperationsAccessCheck.php - Checks access for operations of workflow states and transitions.
- WorkflowStateTransitionOperationsAccessCheckTest::testMissingRouteParams in core/
modules/ workflows/ tests/ src/ Unit/ WorkflowStateTransitionOperationsAccessCheckTest.php - @covers ::access
- workflow_type_test_workflow_access in core/
modules/ workflows/ tests/ modules/ workflow_type_test/ workflow_type_test.module - Implements hook_ENTITY_TYPE_access() for the Workflow entity type.
- workspace_access_test_workspace_access in core/
modules/ workspaces/ tests/ modules/ workspace_access_test/ workspace_access_test.module - Implements hook_ENTITY_TYPE_access() for the 'workspace' entity type.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.