You are here

gridstack_example.module in GridStack 8

Same filename and directory in other branches
  1. 8.2 modules/gridstack_example/gridstack_example.module

Provides GridStack examples.

File

modules/gridstack_example/gridstack_example.module
View source
<?php

/**
 * @file
 * Provides GridStack examples.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_gridstack_skins_info().
 *
 * To provide own skins, simply provide the legit class namespace, and the class
 * must implement \Drupal\gridstack\GridStackSkinInterface.
 *
 * @see \Drupal\gridstack\GridStackSkinInterface
 */
function gridstack_example_gridstack_skins_info() {
  return '\\Drupal\\gridstack_example\\GridStackExampleSkin';
}

/**
 * Implements hook_help().
 */
function gridstack_example_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.gridstack_example':
      return check_markup(file_get_contents(dirname(__FILE__) . '/README.txt'));
  }
}

Functions

Namesort descending Description
gridstack_example_gridstack_skins_info Implements hook_gridstack_skins_info().
gridstack_example_help Implements hook_help().