Search for access

  1. Search 3.x for access
  2. Search 7.x-1.x for access
  3. Other projects
Title Object type File name Summary
BasicExample::access function modules/action_example/src/Plugin/Action/BasicExample.php Checks object access.
ContactAccessControlHandler class modules/content_entity_example/src/ContactAccessControlHandler.php Access controller for the contact entity.
ContactAccessControlHandler.php file modules/content_entity_example/src/ContactAccessControlHandler.php
ContactAccessControlHandler::checkAccess function modules/content_entity_example/src/ContactAccessControlHandler.php Link the activities to the permissions. checkAccess() is called with the
$operation as defined in the routing.yml file.
ContactAccessControlHandler::checkCreateAccess function modules/content_entity_example/src/ContactAccessControlHandler.php Separate from the checkAccess because the entity does not yet exist. It
will be created during the 'add' process.
FieldNoteItemTest::doAccessAssertion function modules/field_permission_example/tests/src/Kernel/FieldNoteItemTest.php Helper routine to run the assertions.
FieldNoteItemTest::testFieldNoteAccess function modules/field_permission_example/tests/src/Kernel/FieldNoteItemTest.php Test multiple access scenarios for the fieldnote field.
field_permission_example_entity_field_access function modules/field_permission_example/field_permission_example.module Implements hook_entity_field_access().
field_permission_example_entity_test_access function modules/field_permission_example/field_permission_example.module Implements hook_ENTITY_TYPE_access().
MenuExampleController::customAccess function modules/menu_example/src/Controller/MenuExampleController.php Demonstrates the use of custom access check in routes.
MenuExampleController::customAccessPage function modules/menu_example/src/Controller/MenuExampleController.php Content will be displayed only if access check is satisfied.
menu_example.access_check.role service modules/menu_example/menu_example.services.yml Drupal\menu_example\Access\RoleAccessCheck
PageExampleTest::pageExampleVerifyNoAccess function modules/page_example/tests/src/Functional/PageExampleTest.php Verify that current user has no access to page.
ProtectedPrivatesTest::getAccessibleMethod function modules/phpunit_example/tests/src/Unit/ProtectedPrivatesTest.php Get an accessible method using reflection.
RobotAccessController class modules/config_entity_example/src/RobotAccessController.php Defines an access controller for the robot entity.
RobotAccessController.php file modules/config_entity_example/src/RobotAccessController.php
RobotAccessController::checkAccess function modules/config_entity_example/src/RobotAccessController.php Performs access checks.
RoleAccessCheck class modules/menu_example/src/Access/RoleAccessCheck.php Determines access to routes based on roles.
RoleAccessCheck.php file modules/menu_example/src/Access/RoleAccessCheck.php
RoleAccessCheck::access function modules/menu_example/src/Access/RoleAccessCheck.php Checks access.
testing_example_node_access function modules/testing_example/testing_example.module Implements hook_node_access().