Commit 758bc4f9 authored by Marco Villegas's avatar Marco Villegas
Browse files

Follow core routing files pattern key rename to path.

Following core's 7cfa38d01ad6f7ec747e1a2f77dc53b07679398c.
parent d61097a6
Loading
Loading
Loading
Loading
+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:
+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:
@@ -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:
@@ -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: