Popups in Drupal 8? No problem!

innoraft12

innoraft12

Posted on June 11, 2019

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!

💖 💪 🙅 🚩
innoraft12
innoraft12

Posted on June 11, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Popups in Drupal 8? No problem!
drupal Popups in Drupal 8? No problem!

June 11, 2019