You are here

class SlickExampleSkin in Slick extras 7.3

Same name and namespace in other branches
  1. 8 slick_example/src/SlickExampleSkin.php \Drupal\slick_example\SlickExampleSkin

Implements SlickSkinInterface as registered via hook_slick_skins_info().

Hierarchy

Expanded class hierarchy of SlickExampleSkin

File

slick_example/src/SlickExampleSkin.php, line 10

Namespace

Drupal\slick_example
View source
class SlickExampleSkin implements SlickSkinInterface {

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

}

Members

Namesort descending Modifiers Type Description Overrides
SlickExampleSkin::skins public function Returns the Slick skins. Overrides SlickSkinInterface::skins