You are here

protected function SlickSkinTest::setSkins in Slick Carousel 8.2

Sets the slick skins.

@inheritdoc

Overrides SlickSkinPluginBase::setSkins

File

tests/modules/slick_test/src/Plugin/slick/SlickSkinTest.php, line 22

Class

SlickSkinTest
Provides slick skin tests.

Namespace

Drupal\slick_test\Plugin\slick

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. Check out slick.api.php for details.
  $path = base_path() . drupal_get_path('module', 'slick_test');
  $skins = [
    'test' => [
      'name' => 'Test',
      'description' => $this
        ->t('Test slick skins.'),
      'group' => 'main',
      'provider' => 'slick_test',
      'css' => [
        'theme' => [
          $path . '/css/slick.theme--test.css' => [],
        ],
      ],
      'options' => [
        'zoom' => TRUE,
      ],
    ],
  ];
  return $skins;
}