paragraphs_gantt-1.0.x-dev/paragraphs_gantt.routing.yml
paragraphs_gantt.routing.yml
paragraphs.gantt:
path: '/paragraphs-gantt/ajax/{paragraph_type}/{view_mode}/{entity_type}/{entity_field}/{entity_id}'
defaults:
_controller: '\Drupal\paragraphs_gantt\Controller\ParagraphsGanttController::ajax'
_title: 'Gantt JSON api'
methods: [POST]
options:
parameters:
paragraph_type:
type: entity:paragraphs_type
requirements:
_permission: 'view unpublished paragraphs'
paragraphs.import:
path: '/paragraphs-gantt/import/{paragraph_type}/{view_mode}/{entity_type}/{entity_field}/{entity_id}'
defaults:
_controller: '\Drupal\paragraphs_gantt\Controller\ParagraphsGanttController::import'
_title: 'Gantt JSON import'
methods: [POST]
options:
parameters:
paragraph_type:
type: entity:paragraphs_type
requirements:
_permission: 'view unpublished paragraphs'
paragraphs_gantt.add:
path: '/paragraphs-gantt/add/{paragraph_type}/{entity_type}/{entity_field}/{entity_id}'
defaults:
_controller: '\Drupal\paragraphs_gantt\Controller\ComponentFormController::addForm'
operation: 'create'
options:
parameters:
paragraph_type:
type: entity:paragraphs_type
requirements:
_custom_access: '\Drupal\paragraphs_gantt\Controller\ParagraphAccessController::accessAdd'
paragraphs_gantt.edit:
path: '/paragraphs-gantt/{paragraph}/edit'
defaults:
_form: '\Drupal\paragraphs_gantt\Form\EditComponentForm'
_title_callback: '\Drupal\paragraphs_gantt\Form\EditComponentForm::pageTitle'
requirements:
_entity_access: 'paragraph.update'
options:
parameters:
paragraph:
type: 'entity:paragraph'
paragraphs_gantt.display:
path: '/paragraphs-gantt/{paragraph}'
defaults:
_controller: '\Drupal\paragraphs_gantt\Controller\ComponentFormController::page'
_title_callback: '\Drupal\paragraphs_gantt\Form\EditComponentForm::pageTitle'
requirements:
_permission: 'view unpublished paragraphs'
options:
parameters:
paragraph:
type: 'entity:paragraph'
