You are here

gridstack.views.inc in GridStack 8

Same filename and directory in other branches
  1. 8.2 gridstack.views.inc

Provides views data for gridstack.module.

File

gridstack.views.inc
View source
<?php

/**
 * @file
 * Provides views data for gridstack.module.
 */

/**
 * Implements hook_views_plugins_style_alter().
 */
function gridstack_views_plugins_style_alter(array &$plugins) {
  $plugins['gridstack'] = [
    'id' => 'gridstack',
    'label' => 'GridStack',
    'description' => t('Display the results in a GridStack.'),
    'class' => 'Drupal\\gridstack\\Plugin\\views\\style\\GridStackViews',
    'display_types' => [
      'normal',
    ],
    'help' => t('Displays the Views results as a GridStack.'),
    'parent' => 'parent',
    'plugin_type' => 'style',
    'register_theme' => FALSE,
    'theme' => 'gridstack',
    'short_title' => 'GridStack',
    'title' => 'GridStack',
    'provider' => 'gridstack',
  ];
}