View source
<?php
namespace Drupal\slick;
use Drupal\blazy\Blazy;
use Drupal\blazy\BlazyDefault;
class SlickDefault extends BlazyDefault {
const FIELDS = [
'file',
'image',
'field_collection',
'paragraphs',
'text',
];
public static function baseSettings() {
return [
'optionset' => 'default',
'override' => FALSE,
'overridables' => [],
'skin' => '',
'skin_arrows' => '',
'skin_dots' => '',
] + parent::baseSettings();
}
public static function gridSettings() {
return [
'preserve_keys' => FALSE,
'visible_items' => 0,
] + parent::gridSettings();
}
public static function imageSettings() {
return [
'layout' => '',
'optionset_thumbnail' => '',
'skin_thumbnail' => '',
'thumbnail_caption' => '',
'thumbnail_effect' => '',
'thumbnail_position' => '',
] + self::baseSettings() + parent::imageSettings() + self::gridSettings();
}
public static function extendedSettings() {
return [
'thumbnail' => '',
] + self::imageSettings() + parent::extendedSettings();
}
public static function htmlSettings() {
return [
'display' => 'main',
'grid' => 0,
'id' => '',
'lazy' => '',
'namespace' => 'slick',
'nav' => FALSE,
'navpos' => FALSE,
'thumbnail_uri' => '',
'unslick' => FALSE,
'vanilla' => FALSE,
'vertical' => FALSE,
'vertical_tn' => FALSE,
'view_name' => '',
] + self::imageSettings();
}
public static function jsSettings() {
return [
'asNavFor' => '',
'prevArrow' => 'Previous',
'nextArrow' => 'Next',
'downArrowTarget' => '',
'downArrowOffset' => '',
'lazyLoad' => 'ondemand',
'rows' => 1,
'slidesPerRow' => 1,
'slide' => '',
'slidesToShow' => 1,
'vertical' => FALSE,
];
}
public static function themeProperties() {
return [
'attached',
'attributes',
'items',
'options',
'optionset',
'settings',
];
}
public static function formSettings() {
return [
'module_css' => TRUE,
'slick_css' => TRUE,
'deprecated' => TRUE,
'deprecated_formatter' => TRUE,
];
}
public static function deprecatedSettings() {
return [
'caption',
'class',
'image',
'layout',
'overlay',
'link',
'thumbnail',
'title',
];
}
public static function dummy() {
return Blazy::PAGES;
}
}