You are here

SlickExampleSkin.php in Slick extras 7.3

Same filename and directory in other branches
  1. 8 slick_example/src/SlickExampleSkin.php

File

slick_example/src/SlickExampleSkin.php
View source
<?php

namespace Drupal\slick_example;

use Drupal\slick\SlickSkinInterface;

/**
 * Implements SlickSkinInterface as registered via hook_slick_skins_info().
 */
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;
  }

}

Classes

Namesort descending Description
SlickExampleSkin Implements SlickSkinInterface as registered via hook_slick_skins_info().