You are here

protected function GridStackExampleSkin::setSkins in GridStack 8.2

Sets the gridstack skins.

@inheritdoc

Overrides GridStackSkinPluginBase::setSkins

File

modules/gridstack_example/src/Plugin/gridstack/GridStackExampleSkin.php, line 22

Class

GridStackExampleSkin
Provides gridstack example skins.

Namespace

Drupal\gridstack_example\Plugin\gridstack

Code

protected function setSkins() {

  // If you copy this file, be sure to add base_path() before any asset path
  // (css or js) as otherwise failing to load the assets. Your module can
  // register paths pointing to a theme.
  $path = base_path() . drupal_get_path('module', 'gridstack_example');
  return [
    'zoe' => [
      'name' => 'X: Zoe',
      'provider' => 'gridstack_example',
      'css' => [
        'theme' => [
          $path . '/css/gridstack.theme--zoe.css' => [],
        ],
      ],
    ],
  ];
}