You are here

function gridstack in GridStack 8.2

Provides a convenient shortcut for procedural hooks.

Return value

class The GridStack class instances.

44 string references to 'gridstack'
Builder::getVariantLinks in src/Plugin/gridstack/stylizer/Builder.php
Returns the AJAX CRUD links for layout variants.
gridstack.optionset.bootstrap.yml in config/install/gridstack.optionset.bootstrap.yml
config/install/gridstack.optionset.bootstrap.yml
gridstack.optionset.default.yml in config/install/gridstack.optionset.default.yml
config/install/gridstack.optionset.default.yml
gridstack.optionset.foundation.yml in config/install/gridstack.optionset.foundation.yml
config/install/gridstack.optionset.foundation.yml
gridstack.optionset.frontend.yml in config/install/gridstack.optionset.frontend.yml
config/install/gridstack.optionset.frontend.yml

... See full list

File

./gridstack.module, line 14
Provides GridStack integration to have multi-column grids with drag-and-drop.

Code

function gridstack($key = 'manager') {
  static $hook;
  static $manager;
  if (!isset($manager)) {
    $hook = \Drupal::service('gridstack.hook');
    $manager = \Drupal::service('gridstack.manager');
  }
  switch ($key) {
    case 'hook':
      return $hook;
    case 'engine':
      return $manager
        ->engineManager();
    case 'skin':
      return $manager
        ->skinManager();
    case 'style':
      return $manager
        ->stylizer();
    default:
      return $manager;
  }
}