profile.routing.yml in Profile 8
7 string references to YAML keys in profile.routing.yml
- ProfileDefaultTest::testSetDefaultRoute in tests/
src/ Functional/ ProfileDefaultTest.php - Tests the entity.profile.set_default route.
- ProfileRevisionTest::testProfileRevisions in tests/
src/ Functional/ ProfileRevisionTest.php - Tests revision handling.
- UserLocalTask::getDerivativeDefinitions in src/
Plugin/ Derivative/ UserLocalTask.php - Gets the definition of all derivatives of a base plugin.
- UserTest::testAddPageAccess in tests/
src/ Functional/ UserTest.php - Tests access to the profile "add" page.
- UserTest::testIncompleteAccess in tests/
src/ Functional/ UserTest.php - Tests access when a user can't view another user's canonical page.
File
profile.routing.ymlView source
- entity.profile.set_default:
- path: '/profile/{profile}/set-default'
- defaults:
- _controller: '\Drupal\profile\Controller\ProfileController::setDefault'
- options:
- parameters:
- profile:
- type: entity:profile
- requirements:
- _entity_access: 'profile.update'
- _csrf_token: 'TRUE'
-
- profile.user_page.single:
- path: '/user/{user}/{profile_type}'
- defaults:
- _controller: '\Drupal\profile\Controller\UserController::singlePage'
- _title_callback: '\Drupal\profile\Controller\UserController::title'
- requirements:
- _profile_type_multiple: 'FALSE'
- _custom_access: '\Drupal\profile\Controller\UserController::checkAccess'
-
- profile.user_page.multiple:
- path: '/user/{user}/{profile_type}/list'
- defaults:
- _controller: '\Drupal\profile\Controller\UserController::multiplePage'
- _title_callback: '\Drupal\profile\Controller\UserController::title'
- requirements:
- _profile_type_multiple: 'TRUE'
- _custom_access: '\Drupal\profile\Controller\UserController::checkAccess'
-
- profile.user_page.add_form:
- path: '/user/{user}/{profile_type}/add'
- defaults:
- _controller: '\Drupal\profile\Controller\UserController::addForm'
- _title: 'Add profile'
- requirements:
- _profile_type_multiple: 'TRUE'
- _custom_access: '\Drupal\profile\Controller\UserController::checkCreateAccess'