splide-1.0.x-dev/tests/modules/splide_test/src/Plugin/splide/SplideSkinTst.php
tests/modules/splide_test/src/Plugin/splide/SplideSkinTst.php
<?php
namespace Drupal\splide_test\Plugin\splide;
use Drupal\splide\SplideSkinPluginBase;
/**
* Provides splide skin tests.
*
* @SplideSkin(
* id = "splide_skin_test",
* label = @Translation("Splide skin test")
* )
*/
class SplideSkinTst extends SplideSkinPluginBase {
/**
* Sets the splide skins.
*
* @inheritdoc
*/
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 splide.api.php for details.
$path = $this->getPath('module', 'splide_test');
$skins = [
'test' => [
'name' => 'Test',
'description' => $this->t('Test splide skins.'),
'group' => 'main',
'provider' => 'splide_test',
'css' => [
'theme' => [
$path . '/css/splide.theme--test.css' => [],
],
],
'options' => [
'zoom' => TRUE,
],
],
];
return $skins;
}
/**
* Sets the splide arrow skins.
*
* @inheritdoc
*/
protected function setArrows() {
$path = $this->getPath('module', 'splide_test');
$skins = [
'arrows' => [
'name' => 'Arrows',
'description' => $this->t('Test splide arrows.'),
'provider' => 'splide_test',
'group' => 'arrows',
'css' => [
'theme' => [
$path . '/css/splide.theme--arrows.css' => [],
],
],
],
];
return $skins;
}
/**
* Sets the splide dots skins.
*
* @inheritdoc
*/
protected function setDots() {
$path = $this->getPath('module', 'splide_test');
$skins = [
'dots' => [
'name' => 'Dots',
'description' => $this->t('Test splide dots.'),
'provider' => 'splide_test',
'group' => 'dots',
'css' => [
'theme' => [
$path . '/css/splide.theme--dots.css' => [],
],
],
],
];
return $skins;
}
}
