bee-8.x-1.1/bee.routing.yml

bee.routing.yml
bee.node.availability:
  path: '/node/{node}/availability'
  defaults:
    _controller: '\Drupal\bee\Controller\BeeController::availability'
    _title_callback: '\Drupal\bee\Controller\BeeController::availabilityTitle'
  requirements:
    _bee_availability_access: 'node'

bee.node.add_reservation:
  path: '/node/{node}/add-reservation'
  defaults:
    _form: '\Drupal\bee\Form\AddReservationForm'
    _title_callback: '\Drupal\bee\Controller\BeeController::addReservationTitle'
  options:
    parameters:
      node:
        type: entity:node
  requirements:
    _bee_add_reservation_access: 'node'

bee.bat_event_series.add_reservation:
  path: '/node/{node}/add-reservation/{bat_event_series}'
  defaults:
    _form: '\Drupal\bee\Form\AddReservationForm'
    _title_callback: '\Drupal\bee\Controller\BeeController::addReservationTitle'
  options:
    parameters:
      node:
        type: entity:node
      bat_event_series:
        type: entity:bat_event_series
  requirements:
    _bee_add_reservation_access: 'node'

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc