sample code
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
daftar_content.account_form:
|
||||
path: '/portfolio/add/account/{type}'
|
||||
defaults:
|
||||
_form: '\Drupal\daftar_content\Form\AccountForm'
|
||||
_title: 'Add an Account'
|
||||
requirements:
|
||||
_role: 'authenticated'
|
||||
|
||||
daftar_content.modal_form:
|
||||
path: '/portfolio/modal/add/{type}'
|
||||
defaults:
|
||||
_title: 'Content Form Modal'
|
||||
_controller: '\Drupal\daftar_content\Controller\ContentFormModalController::launchModal'
|
||||
requirements:
|
||||
_role: 'authenticated'
|
||||
type: '[a-z]+'
|
||||
Reference in New Issue
Block a user