Search for checkAccess

  1. Search 7.x for checkAccess
  2. Search 9.5.x for checkAccess
  3. Search 8.9.x for checkAccess
  4. Search 10.3.x for checkAccess
  5. Other projects
Title Object type File name Summary
AccessAwareRouter::checkAccess function core/lib/Drupal/Core/Routing/AccessAwareRouter.php Apply access check service to the route and parameters in the request.
AccessAwareRouterTest::testCheckAccessResultWithReason function core/tests/Drupal/Tests/Core/Routing/AccessAwareRouterTest.php Tests the matchRequest() function for access denied with reason message.
ArgumentDefaultPluginBase::checkAccess function core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php Disables the given option if the user does not have access.
ArgumentValidatorPluginBase::checkAccess function core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php Blocks user input when the form is shown but we don´t have access.
AuthorFormatter::checkAccess function core/modules/user/src/Plugin/Field/FieldFormatter/AuthorFormatter.php
BaseFieldOverrideAccessControlHandler::checkAccess function core/lib/Drupal/Core/Field/BaseFieldOverrideAccessControlHandler.php
BlockAccessControlHandler::checkAccess function core/modules/block/src/BlockAccessControlHandler.php
BlockContentAccessControlHandler::checkAccess function core/modules/block_content/src/BlockContentAccessControlHandler.php
BlockTypeAccessControlHandler::checkAccess function core/modules/block_content/src/BlockTypeAccessControlHandler.php
BookManager::bookTreeCheckAccess function core/modules/book/src/ProxyClass/BookManager.php
BookManager::bookTreeCheckAccess function core/modules/book/src/BookManager.php
BookManager::doBookTreeCheckAccess function core/modules/book/src/BookManager.php Sorts the menu tree and recursively checks access for each item.
BookManagerInterface::bookTreeCheckAccess function core/modules/book/src/BookManagerInterface.php Checks access and performs dynamic operations for each link in the tree.
CommentAccessControlHandler::checkAccess function core/modules/comment/src/CommentAccessControlHandler.php
ConfigTestAccessControlHandler::checkAccess function core/modules/config/tests/config_test/src/ConfigTestAccessControlHandler.php
ConfigTranslationFormAccess::doCheckAccess function core/modules/config_translation/src/Access/ConfigTranslationFormAccess.php Checks access given an account, configuration mapper, and source language.
ConfigTranslationOverviewAccess::doCheckAccess function core/modules/config_translation/src/Access/ConfigTranslationOverviewAccess.php Checks access given an account, configuration mapper, and source language.
ContactFormAccessControlHandler::checkAccess function core/modules/contact/src/ContactFormAccessControlHandler.php
ContentModerationStateAccessControlHandler::checkAccess function core/modules/content_moderation/src/ContentModerationStateAccessControlHandler.php
ContentTranslationDeleteAccess::checkAccess function core/modules/content_translation/src/Access/ContentTranslationDeleteAccess.php Checks access to translation deletion for the specified entity.
ContentTranslationManageAccessCheck::checkAccess function core/modules/content_translation/src/Access/ContentTranslationManageAccessCheck.php Performs access checks for the specified operation.
DateFormatAccessControlHandler::checkAccess function core/modules/system/src/DateFormatAccessControlHandler.php
DefaultMenuLinkTreeManipulators::checkAccess function core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php Performs access checks of a menu tree.
DefaultMenuLinkTreeManipulators::menuLinkCheckAccess function core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php Checks access for one menu link instance.
DefaultMenuLinkTreeManipulatorsTest::testCheckAccess function core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php Tests the checkAccess() tree manipulator.
DefaultMenuLinkTreeManipulatorsTest::testCheckAccessTreeManipulator function core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php Tests checkAccess() tree manipulator.
EditorAccessControlHandler::checkAccess function core/modules/editor/src/EditorAccessControlHandler.php
EntityAccessControlHandler::checkAccess function core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php Performs access checks.
EntityFormDisplayAccessControlHandler::checkAccess function core/lib/Drupal/Core/Entity/Entity/Access/EntityFormDisplayAccessControlHandler.php
EntityReferenceFormatterBase::checkAccess function core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php Checks access to the given entity.
EntityReferenceLabelFormatter::checkAccess function core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceLabelFormatter.php
EntityTestAccessControlHandler::checkAccess function core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php
EntityTestRevlogAccessControlHandler::checkAccess function core/modules/system/tests/modules/entity_test_revlog/src/EntityTestRevlogAccessControlHandler.php
EntityViewDisplayAccessControlHandler::checkAccess function core/lib/Drupal/Core/Entity/Entity/Access/EntityViewDisplayAccessControlHandler.php
FieldConfigAccessControlHandler::checkAccess function core/modules/field/src/FieldConfigAccessControlHandler.php
FieldStorageConfigAccessControlHandler::checkAccess function core/modules/field/src/FieldStorageConfigAccessControlHandler.php
FileAccessControlHandler::checkAccess function core/modules/file/src/FileAccessControlHandler.php
FileFormatterBase::checkAccess function core/modules/file/src/Plugin/Field/FieldFormatter/FileFormatterBase.php
FileTestAccessControlHandler::checkAccess function core/modules/file/tests/file_test/src/FileTestAccessControlHandler.php
FilterFormatAccessControlHandler::checkAccess function core/modules/filter/src/FilterFormatAccessControlHandler.php
LanguageAccessControlHandler::checkAccess function core/modules/language/src/LanguageAccessControlHandler.php
MediaAccessControlHandler::checkAccess function core/modules/media/src/MediaAccessControlHandler.php
MediaLibraryEditorOpener::checkAccess function core/modules/media_library/src/MediaLibraryEditorOpener.php
MediaLibraryFieldWidgetOpener::checkAccess function core/modules/media_library/src/MediaLibraryFieldWidgetOpener.php
MediaLibraryOpenerInterface::checkAccess function core/modules/media_library/src/MediaLibraryOpenerInterface.php Checks media library access.
MediaLibraryUiBuilder::checkAccess function core/modules/media_library/src/MediaLibraryUiBuilder.php Check access to the media library.
MediaThumbnailFormatter::checkAccess function core/modules/media/src/Plugin/Field/FieldFormatter/MediaThumbnailFormatter.php
MediaTypeAccessControlHandler::checkAccess function core/modules/media/src/MediaTypeAccessControlHandler.php
MenuAccessControlHandler::checkAccess function core/modules/system/src/MenuAccessControlHandler.php
MenuLinkContentAccessControlHandler::checkAccess function core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.