You are here

class GridStackExampleSkin in GridStack 8

Implements GridStackSkinInterface via hook_gridstack_skins_info().

Hierarchy

Expanded class hierarchy of GridStackExampleSkin

File

modules/gridstack_example/src/GridStackExampleSkin.php, line 10

Namespace

Drupal\gridstack_example
View source
class GridStackExampleSkin implements GridStackSkinInterface {

  /**
   * {@inheritdoc}
   */
  public function skins() {
    $path = base_path() . drupal_get_path('module', 'gridstack_example');
    $skins = [
      'zoe' => [
        'name' => 'X: Zoe',
        'provider' => 'gridstack_example',
        'css' => [
          'theme' => [
            $path . '/css/gridstack.theme--zoe.css' => [],
          ],
        ],
      ],
    ];
    return $skins;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GridStackExampleSkin::skins public function Returns the GridStack skins. Overrides GridStackSkinInterface::skins