You are here

protected function SlickExampleSkinTrait::definedSkins in Slick extras 8

Sets the slick skins.

2 calls to SlickExampleSkinTrait::definedSkins()
SlickExampleSkin::setSkins in slick_example/src/Plugin/slick/SlickExampleSkin.php
Sets the slick skins.
SlickExampleSkin::skins in slick_example/src/SlickExampleSkin.php

File

slick_example/src/SlickExampleSkinTrait.php, line 16

Class

SlickExampleSkinTrait
A Trait common during transition from hook_hook_info to plugin system.

Namespace

Drupal\slick_example

Code

protected function definedSkins() {
  $path = base_path() . drupal_get_path('module', 'slick_example');
  $skins = [
    'x_testimonial' => [
      'name' => 'X: Testimonial',
      'description' => $this
        ->t('Testimonial with thumbnail and description with slidesToShow 2.'),
      'group' => 'main',
      'provider' => 'slick_example',
      'css' => [
        'theme' => [
          $path . '/css/slick.theme--x-testimonial.css' => [],
        ],
      ],
    ],
  ];
  return $skins;
}