popup form

Create a popup form in Drupal 8

  1. Add a route record into /modules/my_module/my_module.routing.yml
    • This route indicated the function openForm of openFormController will be executed after you goto the url of http://yourdomain/openForm through browser.
      my_module.openFormController:
        path: 'openForm'
        defaults:
          _controller: '\Drupal\my_module\Controller\openFormController::openForm'
          _title: 'Open Form'
        requirements:
         _permission: 'access content'
      
Subscribe to RSS - popup form