Search for access

  1. Search 3.x for access
  2. Search 7.x-1.x for access
  3. Search 6.x-1.x for access
  4. Search 4.0.x for access
  5. Other projects
Title Object type File name Summary
ContactAccessControlHandler class content_entity_example/src/ContactAccessControlHandler.php Access controller for the contact entity.
ContactAccessControlHandler.php file content_entity_example/src/ContactAccessControlHandler.php
ContactAccessControlHandler::checkAccess function 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 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 field_permission_example/tests/src/Kernel/FieldNoteItemTest.php Helper routine to run the assertions.
FieldNoteItemTest::testFieldNoteAccess function field_permission_example/tests/src/Kernel/FieldNoteItemTest.php Test multiple access scenarios for the fieldnote field.
field_permission_example_entity_field_access function field_permission_example/field_permission_example.module Implements hook_entity_field_access().
field_permission_example_entity_test_access function field_permission_example/field_permission_example.module Implements hook_ENTITY_TYPE_access().
MenuExampleController::customAccess function menu_example/src/Controller/MenuExampleController.php Demonstrates the use of custom access check in routes.
MenuExampleController::customAccessPage function menu_example/src/Controller/MenuExampleController.php Content will be displayed only if access check is satisfied.
menu_example.access_check.role service menu_example/menu_example.services.yml Drupal\menu_example\Access\RoleAccessCheck
PageExampleTest::pageExampleVerifyNoAccess function page_example/tests/src/Functional/PageExampleTest.php Verify that current user has no access to page.
ProtectedPrivatesTest::getAccessibleMethod function phpunit_example/tests/src/Unit/ProtectedPrivatesTest.php Get an accessible method using reflection.
RobotAccessController class config_entity_example/src/RobotAccessController.php Defines an access controller for the robot entity.
RobotAccessController.php file config_entity_example/src/RobotAccessController.php
RobotAccessController::checkAccess function config_entity_example/src/RobotAccessController.php
RoleAccessCheck class menu_example/src/Access/RoleAccessCheck.php Determines access to routes based on roles.
RoleAccessCheck.php file menu_example/src/Access/RoleAccessCheck.php
RoleAccessCheck::access function menu_example/src/Access/RoleAccessCheck.php Checks access.
testing_example_node_access function testing_example/testing_example.module Implements hook_node_access().