key_auth.routing.yml in Key auth 8
6 string references to YAML keys in key_auth.routing.yml
- KeyAuth::__construct in src/
KeyAuth.php - Constructs a new KeyAuth object.
- KeyAuthSettingsForm::buildForm in src/
Form/ KeyAuthSettingsForm.php - Form constructor.
- KeyAuthSettingsForm::getEditableConfigNames in src/
Form/ KeyAuthSettingsForm.php - Gets the configuration names that will be editable.
- KeyAuthTest::setUp in tests/
src/ Functional/ KeyAuthTest.php - KeyAuthTest::testUserKeyAuthForm in tests/
src/ Functional/ KeyAuthTest.php - Test the user key auth form.
File
key_auth.routing.ymlView source
- key_auth.settings:
- path: '/admin/config/services/key-auth'
- defaults:
- _form: '\Drupal\key_auth\Form\KeyAuthSettingsForm'
- _title: 'Key authentication'
- requirements:
- _permission: 'administer site configuration'
- options:
- _admin_route: TRUE
-
- key_auth.user_key_auth_form:
- path: '/user/{user}/key-auth'
- defaults:
- _form: '\Drupal\key_auth\Form\UserKeyAuthForm'
- _title: 'Key authentication'
- requirements:
- _custom_access: '\Drupal\key_auth\Form\UserKeyAuthForm::checkAccess'
- options:
- user: \d+