Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

routing code in drupal 8

module_name.route_machine_name:
    path: '/{module_name}/personal-info'
    defaults:
        _form: 'Drupal{module_name}FormInfoForm'
        _title: 'Personal information'
    requirements:    
        _permission : 'custom_module_permission'
 
PREVIOUS NEXT
Tagged: #routing #code #drupal
ADD COMMENT
Topic
Name
1+7 =