O'Reilly logo

Drupal 8 Development Beginner's Guide - Second Edition by Kurt Madel, Malabya Tewari, Rakesh James, Krishna Kanth, Edward Crompton, Samuel Keen, Tassos Koutlas, Neeraj Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – developing a Views style plugin for semantic tabs

We are going to create a new module for our introduction to plugins for Views. And we will contribute it to Drupal in the next topic.

  1. Open PhpStorm and navigate to the /modules/custom folder in our d8dev project.
  2. Create a new folder named views_semantic_tabs—the name of our new module.
  3. Create a new file named views_semantic_tabs.info.yml and enter the following information:
      name: Views semantic tabs
      type: module
      description: Provides a views style plugin to display views results in jQuery UI Tabs.
      core: 8.x
      package: Views
      dependencies:
        - views

    In Drupal 7, we use the hook_views_plugins() hook function to register new plugins. Drupal 8, on the other hand, depends on annotations and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required