Drupal 8 routing declaration

Public

Based on new Symfony-based routing system
file-name: acme.routing.yml

</> CopyGet raw version
yaml
  1. acme_hello_name:
  2.   path: '/acme/hello/{name}'
  3.   defaults:
  4.   _controller: '\Drupal\acme\Controller\DemoController::helloAction'
  5.   requirements:
  6.   _permission: "view content"