12 calls to AccessResult::allowedIf()

AccessCheck::access in core/modules/system/tests/modules/menu_test/src/Access/AccessCheck.php
Check to see if user accessed this page.
AccessResultTest::providerTestAllowedIfHasPermissions in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
Provides data for the testAllowedIfHasPermissions() method.
AccessResultTest::testAccessConditionallyAllowed in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::allowedIf[[api-linebreak]] @covers ::isAllowed[[api-linebreak]] @covers ::isForbidden[[api-linebreak]] @covers ::isNeutral[[api-linebreak]]
ChangedFieldItemList::defaultAccess in core/lib/Drupal/Core/Field/ChangedFieldItemList.php
Contains the default access logic of this field.
CommentController::replyFormAccess in core/modules/comment/src/Controller/CommentController.php
Access check for the reply form.
EntityPermissionsForm::access in core/modules/user/src/Form/EntityPermissionsForm.php
Checks that there are permissions to be managed.
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.
PrepareModulesEntityUninstallForm::checkAccess in core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
Checks access based on the validity of the entity type ID.
TestController::accessParameter in core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php
TestController::accessRequest in core/tests/Drupal/Tests/Core/Access/CustomAccessCheckTest.php
WorkflowAccessControlHandler::checkCreateAccess in core/modules/workflows/src/WorkflowAccessControlHandler.php
Performs create access checks.

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