112 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
Checks a route against applicable access check services.
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
Tests orIf().
ActiveWorkspaceCheck::access in core/modules/workspaces/src/Access/ActiveWorkspaceCheck.php
Checks access.
ContentModerationHooks::entityAccess in core/modules/content_moderation/src/Hook/ContentModerationHooks.php
Implements hook_entity_access().
ContentModerationHooks::entityFieldAccess in core/modules/content_moderation/src/Hook/ContentModerationHooks.php
Implements hook_entity_field_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.
ContentTranslationTestHooks::entityAccess in core/modules/content_translation/tests/modules/content_translation_test/src/Hook/ContentTranslationTestHooks.php
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::entityAccess in core/modules/workspaces/src/Hook/EntityAccess.php
Implements hook_entity_access().
EntityAccess::entityCreateAccess in core/modules/workspaces/src/EntityAccess.php
Implements a hook bridge for hook_entity_create_access().
EntityAccess::entityCreateAccess in core/modules/workspaces/src/Hook/EntityAccess.php
Implements 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.
EntityTestHooks::entityAccess in core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php
Implements hook_entity_access().
EntityTestHooks::entityCreateAccess in core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php
Implements hook_entity_create_access().
EntityTestHooks::entityFieldAccess in core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php
Implements hook_entity_field_access().
EntityTestHooks::entityTestAccess in core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php
Implements hook_ENTITY_TYPE_access() for 'entity_test'.
EntityTestHooks::entityTestCreateAccess in core/modules/system/tests/modules/entity_test/src/Hook/EntityTestHooks.php
Implements hook_ENTITY_TYPE_create_access() for 'entity_test'.
EntityTestRevlogAccessControlHandler::checkAccess in core/modules/system/tests/modules/entity_test_revlog/src/EntityTestRevlogAccessControlHandler.php
Performs access checks.
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.
ImageAccessTestHiddenHooks::entityFieldAccess in core/modules/image/tests/modules/image_access_test_hidden/src/Hook/ImageAccessTestHiddenHooks.php
Implements hook_entity_field_access().
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().
JsonapiTestFieldAccessHooks::entityFieldAccess in core/modules/jsonapi/tests/modules/jsonapi_test_field_access/src/Hook/JsonapiTestFieldAccessHooks.php
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().
JsonTestFieldFilterAccessHooks::jsonapiEntityFieldFilterAccess in core/modules/jsonapi/tests/modules/jsonapi_test_field_filter_access/src/Hook/JsonTestFieldFilterAccessHooks.php
Implements hook_jsonapi_entity_field_filter_access().
LanguageAccessControlHandler::checkAccess in core/modules/language/src/LanguageAccessControlHandler.php
Performs access checks.
LanguageHooks::entityFieldAccess in core/modules/language/src/Hook/LanguageHooks.php
Implements hook_entity_field_access().
LayoutBuilderHooks::blockContentAccess in core/modules/layout_builder/src/Hook/LayoutBuilderHooks.php
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().
MediaHooks::entityAccess in core/modules/media/src/Hook/MediaHooks.php
Implements hook_entity_access().
MediaLibraryHooks::imageStyleAccess in core/modules/media_library/src/Hook/MediaLibraryHooks.php
Implements hook_ENTITY_TYPE_access().
MediaLibraryTestHooks::mediaCreateAccess in core/modules/media_library/tests/modules/media_library_test/src/Hook/MediaLibraryTestHooks.php
Implements hook_ENTITY_TYPE_create_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
NodeHooks1::nodeAccess in core/modules/node/src/Hook/NodeHooks1.php
Implements hook_ENTITY_TYPE_access().
NodeOperationAccessTest::testRevisionOperations in core/modules/node/tests/src/Unit/NodeOperationAccessTest.php
Tests revision operations.
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.
RestTestHooks::entityFieldAccess in core/modules/rest/tests/modules/rest_test/src/Hook/RestTestHooks.php
Implements hook_entity_field_access().
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.
TaxonomyTestHooks::entityAccess in core/modules/taxonomy/tests/modules/taxonomy_test/src/Hook/TaxonomyTestHooks.php
Implements hook_entity_access().
taxonomy_test_entity_access in core/modules/taxonomy/tests/modules/taxonomy_test/taxonomy_test.module
Implements hook_entity_access().
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.
UserAccessTestHooks::entityCreateAccess in core/modules/user/tests/modules/user_access_test/src/Hook/UserAccessTestHooks.php
Implements hook_entity_create_access().
UserAccessTestHooks::entityFieldAccess in core/modules/user/tests/modules/user_access_test/src/Hook/UserAccessTestHooks.php
Implements hook_entity_field_access().
UserAccessTestHooks::userAccess in core/modules/user/tests/modules/user_access_test/src/Hook/UserAccessTestHooks.php
Implements hook_ENTITY_TYPE_access() for entity type "user".
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.
ViewsEntityTestHooks::entityFieldAccess in core/modules/views/tests/modules/views_entity_test/src/Hook/ViewsEntityTestHooks.php
Implements hook_entity_field_access().
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
WorkflowTypeTestHooks::workflowAccess in core/modules/workflows/tests/modules/workflow_type_test/src/Hook/WorkflowTypeTestHooks.php
Implements hook_ENTITY_TYPE_access() for the Workflow entity type.
WorkspaceAccessTestHooks::workspaceAccess in core/modules/workspaces/tests/modules/workspace_access_test/src/Hook/WorkspaceAccessTestHooks.php
Implements hook_ENTITY_TYPE_access() for the 'workspace' 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.