mailing_list.routing.yml in Mailing List 8
9 string references to YAML keys in mailing_list.routing.yml
- AnonymousSubscriptionAccessForm::submitForm in src/
Form/ AnonymousSubscriptionAccessForm.php - Form submission handler.
- MailingListController::subscribePage in src/
Controller/ MailingListController.php - Displays add subscription links for available mailing lists.
- MailingListDeleteConfirmForm::buildForm in src/
Form/ MailingListDeleteConfirmForm.php - Form constructor.
- MailingListDeleteConfirmForm::getCancelUrl in src/
Form/ MailingListDeleteConfirmForm.php - Returns the route to go to if the user cancels the action.
- MailingListImportForm::submitForm in src/
Form/ MailingListImportForm.php - Form submission handler.
File
mailing_list.routing.ymlView source
- entity.mailing_list.collection:
- path: '/admin/structure/mailing-lists'
- defaults:
- _entity_list: 'mailing_list'
- _title: 'Mailing lists'
- requirements:
- _permission: 'administer mailing lists'
-
- mailing_list.list_add:
- path: '/admin/structure/mailing-lists/add'
- defaults:
- _entity_form: 'mailing_list.add'
- _title: 'Add mailing list'
- requirements:
- _permission: 'administer mailing lists'
-
- entity.mailing_list.edit_form:
- path: '/admin/structure/mailing-lists/manage/{mailing_list}'
- defaults:
- _entity_form: 'mailing_list.edit'
- requirements:
- _permission: 'administer mailing lists'
-
- entity.mailing_list.delete_form:
- path: '/admin/structure/mailing-lists/manage/{mailing_list}/delete'
- defaults:
- _entity_form: 'mailing_list.delete'
- _title: 'Delete'
- requirements:
- _entity_access: 'mailing_list.delete'
-
- entity.mailing_list.export:
- path: '/admin/structure/mailing-lists/manage/{mailing_list}/export'
- defaults:
- _form: '\Drupal\mailing_list\Form\MailingListExportForm'
- _title: 'Mailing list subscription export'
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer mailing list subscriptions'
-
- entity.mailing_list.import:
- path: '/admin/structure/mailing-lists/manage/{mailing_list}/import'
- defaults:
- _form: '\Drupal\mailing_list\Form\MailingListImportForm'
- _title: 'Mailing list subscription import'
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer mailing list subscriptions'
-
- entity.mailing_list_subscription.collection:
- path: '/admin/people/mailing-list-subscription'
- defaults:
- _entity_list: 'mailing_list_subscription'
- _title: 'Mailing list subscriptions'
- options:
- _admin_route: TRUE
- requirements:
- _permission: 'administer mailing list subscriptions'
-
- entity.mailing_list_subscription.manage:
- path: '/mailing-list/subscription'
- defaults:
- _entity_list: 'mailing_list_subscription'
- _title: 'Your mailing list subscriptions'
- requirements:
- _subscription_add_access: 'true'
-
- entity.mailing_list_subscription.add_form:
- path: '/mailing-list/subscribe/{mailing_list}'
- defaults:
- _controller: '\Drupal\mailing_list\Controller\MailingListController::subscribeForm'
- _title: 'Subscribe'
- options:
- _admin_route: TRUE
- requirements:
- _entity_create_access: 'mailing_list_subscription:{mailing_list}'
-
- entity.mailing_list_subscription.edit_form:
- path: '/mailing-list/subscription/{mailing_list_subscription}/edit'
- defaults:
- _entity_form: 'mailing_list_subscription.edit'
- _title: 'Edit subscription'
- options:
- _admin_route: TRUE
- requirements:
- _entity_access: 'mailing_list_subscription.update'
- mailing_list_subscription: \d+
-
- entity.mailing_list_subscription.delete_form:
- path: '/mailing-list/subscription/{mailing_list_subscription}/cancel'
- defaults:
- _entity_form: 'mailing_list_subscription.delete'
- _title: 'Cancel subscription'
- options:
- _admin_route: TRUE
- requirements:
- _entity_access: 'mailing_list_subscription.delete'
- mailing_list_subscription: \d+
-
- mailing_list.subscribe_page:
- path: '/mailing-list/subscribe'
- defaults:
- _title: 'Subscribe to mailing list'
- _controller: '\Drupal\mailing_list\Controller\MailingListController::subscribePage'
- requirements:
- _subscription_add_access: 'true'
-
- mailing_list.subscribe:
- path: '/mailing-list/subscribe/{mailing_list}'
- defaults:
- _title: 'Subscribe to mailing list'
- _entity_form: mailing_list_subscription.add
- requirements:
- _subscription_add_access: 'mailing_list:{mailing_list}'
- options:
- _admin_route: TRUE
- parameters:
- mailing_list:
- type: entity:mailing_list
- with_config_overrides: TRUE
-
- mailing_list.access_subscription:
- path: '/mailing-list/subscription/{sid}/access/{hash}/{rel}'
- defaults:
- _title: 'Access subscription'
- _controller: '\Drupal\mailing_list\Controller\MailingListController::accessSubscription'
- requirements:
- _access: 'TRUE'
- sid: ^[0-9]+$
- hash: ^[a-zA-Z0-9\-_]{43}$
- rel: ^(canonical|edit-form|delete-form|manage|form-destination)$