multi_node_add.routing.yml in Multi Node Add 8
2 string references to YAML keys in multi_node_add.routing.yml
- MultiNodeAddController::overview in src/
Controller/ MultiNodeAddController.php - Provides links to specific bundle multi node add forms.
- template_preprocess_multi_node_add_list in ./
multi_node_add.module - Prepares variables for list of available node type templates.
File
multi_node_add.routing.ymlView source
- multi_node_add.add:
- path: '/multi-node-add/{node_type}'
- defaults:
- _form: '\Drupal\multi_node_add\Form\MultiNodeAddForm'
- _title_callback: '\Drupal\node\Controller\NodeController::addPageTitle'
- options:
- _node_operation_route: TRUE
- requirements:
- _node_add_access: 'node:{node_type}'
-
- multi_node_add.frame:
- path: '/multi-node-add/{node_type}/frame/{fields}'
- defaults:
- _controller: '\Drupal\multi_node_add\Controller\MultiNodeAddController::formPage'
- _title_callback: '\Drupal\node\Controller\NodeController::addPageTitle'
- options:
- _node_operation_route: TRUE
- requirements:
- _node_add_access: 'node:{node_type}'
-
- multi_node_add.status:
- path: '/multi-node-add/{node_type}/status/{nid}'
- defaults:
- _controller: '\Drupal\multi_node_add\Controller\MultiNodeAddController::statusPage'
- options:
- _node_operation_route: TRUE
- requirements:
- _node_add_access: 'node:{node_type}'
-
- multi_node_add.add_page:
- path: '/multi-node-add'
- defaults:
- _title: 'Add multiple content'
- _controller: '\Drupal\multi_node_add\Controller\MultiNodeAddController::overview'
- options:
- _access_mode: 'ANY'
- _node_operation_route: TRUE
- requirements:
- _permission: 'administer content types'
- _node_add_access: 'node'