You are here

100 calls to AccessResult::allowed() in Drupal 8

AccessAwareRouterTest::testMatchRequestAllowed in core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php
Tests the matchRequest() function for access allowed.
AccessCheck::access in core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php
Check to see if user accessed this page.
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().
AccessManagerTest::testCheckNamedRoute in core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
Tests the checkNamedRoute method.
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::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::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.
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
ConfigTestAccessControlHandler::checkAccess in core/modules/config/tests/config_test/src/ConfigTestAccessControlHandler.php
Performs access checks.
ConfigTestAccessControlHandler::checkCreateAccess in core/modules/config/tests/config_test/src/ConfigTestAccessControlHandler.php
Performs create access checks.
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.
ContentTranslationManageAccessCheckTest::testCreateAccess in core/modules/content_translation/tests/src/Unit/Access/ContentTranslationManageAccessCheckTest.php
Tests the create access method.
content_translation_test_entity_access in core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module
Implements hook_entity_access().
ContextualLinkManagerTest::testGetContextualLinksArrayByGroup in core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php
Tests the getContextualLinksArrayByGroup method.
CsrfAccessCheck::access in core/lib/Drupal/Core/Access/CsrfAccessCheck.php
Checks access based on a CSRF token for the request.
CsrfRequestHeaderAccessCheck::access in core/lib/Drupal/Core/Access/CsrfRequestHeaderAccessCheck.php
Checks access.
CustomAccessCheckTest::testAccess in core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php
Test the access method.
DateFormatAccessControlHandler::checkAccess in core/modules/system/src/DateFormatAccessControlHandler.php
Performs access checks.
DateFormatAccessControlHandlerTest::testAccessProvider in core/modules/system/tests/src/Kernel/DateFormatAccessControlHandlerTest.php
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.
DefaultMenuLinkTreeManipulators::menuLinkCheckAccess in core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php
Checks access for one menu link instance.
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.
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
Checks object access.
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.
EntityBundleAccessCheckTest::getBundleAndAccessResult in core/tests/Drupal/Tests/Core/Entity/EntityBundleAccessCheckTest.php
Data provider.
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
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_test_entity_access in core/modules/system/tests/modules/entity_test/entity_test.module
Implements hook_entity_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
Checks object access.
jsonapi_jsonapi_block_content_filter_access in core/modules/jsonapi/jsonapi.module
Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'block_content'.
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
Indicates whether the block should be shown.
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().
LocalTaskManagerTest::setupFactoryAndLocalTaskPlugins in core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php
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
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
Checks object access.
NodeGrantDatabaseStorage::access in core/modules/node/src/NodeGrantDatabaseStorage.php
Determines access to nodes based on node grants.
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::testRenderWithAccessControllerResolved in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender
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
SimpleConfigSectionStorage::access in core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
Overrides \Drupal\Core\Access\AccessibleInterface::access().
TestAccessClass::accessResultAllowed in core/tests/Drupal/Tests/Core/Render/RendererTest.php
TestController::accessAllow 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.
UserAccessControlHandlerTest::setUp in core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php
ViewsBlockBase::blockAccess in core/modules/views/src/Plugin/Block/ViewsBlockBase.php
Indicates whether the block should be shown.
WorkflowStateTransitionOperationsAccessCheckTest::testAccess in core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php
Test the access method correctly proxies to the entity access system.
WorkflowStateTransitionOperationsAccessCheckTest::testLegacyWorkflowStateDeleteAccessCheck in core/modules/workflows/tests/src/Unit/WorkflowStateTransitionOperationsAccessCheckTest.php
@covers \Drupal\workflows\WorkflowDeleteAccessCheck::access @expectedDeprecation Using the _workflow_state_delete_access check is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0, use _workflow_access instead. As an internal API…