Loading cron_example/cron_example.routing.yml +1 −1 Changes for cron_example/cron_example.routing.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line cron_example: pattern: 'examples/cron_example' path: 'examples/cron_example' defaults: _form: '\Drupal\cron_example\Forms\CronExampleForm' requirements: Loading page_example/page_example.routing.yml +3 −3 Changes for page_example/page_example.routing.yml: 3 added lines, 3 removed lines. Original line number Diff line number Diff line # In order to create pages is necessary to define routes for them. The # following lines defines three of them for this module. page_example_description: pattern: 'examples/page_example' path: 'examples/page_example' defaults: _content: '\Drupal\page_example\Controller\PageExampleController::description' requirements: Loading @@ -10,7 +10,7 @@ page_example_description: # the menu system will first look for a route with that path. In this case it # will find a match, and execute the _content callback. page_example_simple: pattern: 'examples/page_example/simple' path: 'examples/page_example/simple' defaults: _content: '\Drupal\page_example\Controller\PageExampleController::simple' requirements: Loading @@ -27,7 +27,7 @@ page_example_simple: # the function after the match, the function can do additional checking or # make use of them before executing the callback function. page_example_arguments: pattern: 'examples/page_example/arguments/{first}/{second}' path: 'examples/page_example/arguments/{first}/{second}' defaults: _content: '\Drupal\page_example\Controller\PageExampleController::arguments' requirements: Loading Loading
cron_example/cron_example.routing.yml +1 −1 Changes for cron_example/cron_example.routing.yml: 1 added line, 1 removed line. Original line number Diff line number Diff line cron_example: pattern: 'examples/cron_example' path: 'examples/cron_example' defaults: _form: '\Drupal\cron_example\Forms\CronExampleForm' requirements: Loading
page_example/page_example.routing.yml +3 −3 Changes for page_example/page_example.routing.yml: 3 added lines, 3 removed lines. Original line number Diff line number Diff line # In order to create pages is necessary to define routes for them. The # following lines defines three of them for this module. page_example_description: pattern: 'examples/page_example' path: 'examples/page_example' defaults: _content: '\Drupal\page_example\Controller\PageExampleController::description' requirements: Loading @@ -10,7 +10,7 @@ page_example_description: # the menu system will first look for a route with that path. In this case it # will find a match, and execute the _content callback. page_example_simple: pattern: 'examples/page_example/simple' path: 'examples/page_example/simple' defaults: _content: '\Drupal\page_example\Controller\PageExampleController::simple' requirements: Loading @@ -27,7 +27,7 @@ page_example_simple: # the function after the match, the function can do additional checking or # make use of them before executing the callback function. page_example_arguments: pattern: 'examples/page_example/arguments/{first}/{second}' path: 'examples/page_example/arguments/{first}/{second}' defaults: _content: '\Drupal\page_example\Controller\PageExampleController::arguments' requirements: Loading