DEV Community

innoraft12
innoraft12

Posted on

Popups in Drupal 8? No problem!

Drupal 8 is here and everyone is excited about it. There are too many features and add-ons to explore. However, this one focusses only on overlay / popup i.e. provide a simple and easy implementation. With this blog, I aim to explain the basic implementation of how to create a popup of your own.

Before learning to implement popup, let us briefly go through the drupal 8 routing system.

If you already know about the routing system, you can skip this section and if you don't I assume you still know at least the basics of Drupal 8. I have a page which has a table display of some data. On top of this page, I'll provide a link which will open a form in popup.

Now, let's start with the steps.

At first, we create a routing link where we show a table with some content.

hollywood.view_movie:

path: '/movies-list'

defaults:

_title: 'Movie List'

_controller: '\Drupal\hollywood\Controller\MovieList::overview'

requirements:

_permission: 'movies list'

Read more!

Top comments (0)