class SlickDefault in Slick Carousel 8.2
Same name and namespace in other branches
- 8 src/SlickDefault.php \Drupal\slick\SlickDefault
- 7.3 src/SlickDefault.php \Drupal\slick\SlickDefault
Defines shared plugin default settings for field formatter and Views style.
Hierarchy
- class \Drupal\slick\SlickDefault extends \Drupal\blazy\BlazyDefault
Expanded class hierarchy of SlickDefault
See also
FormatterBase::defaultSettings()
StylePluginBase::defineOptions()
9 files declare their use of SlickDefault
- slick.module in ./
slick.module - Slick carousel integration, the last carousel you'll ever need.
- slick.theme.inc in templates/
slick.theme.inc - Hooks and preprocess functions for the Slick module.
- SlickCrudTest.php in tests/
src/ Kernel/ SlickCrudTest.php - SlickEntityFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ SlickEntityFormatterBase.php - SlickEntityReferenceFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ SlickEntityReferenceFormatterBase.php
File
- src/
SlickDefault.php, line 13
Namespace
Drupal\slickView source
class SlickDefault extends BlazyDefault {
/**
* {@inheritdoc}
*/
public static function baseSettings() {
return [
'optionset' => 'default',
'override' => FALSE,
'overridables' => [],
'skin' => '',
'skin_arrows' => '',
'skin_dots' => '',
'use_theme_field' => FALSE,
] + parent::baseSettings();
}
/**
* {@inheritdoc}
*/
public static function gridSettings() {
return [
'preserve_keys' => FALSE,
'visible_items' => 0,
] + parent::gridSettings();
}
/**
* {@inheritdoc}
*/
public static function imageSettings() {
return [
'optionset_thumbnail' => '',
'skin_thumbnail' => '',
'thumbnail_caption' => '',
'thumbnail_effect' => '',
'thumbnail_position' => '',
] + self::baseSettings() + parent::imageSettings() + self::gridSettings();
}
/**
* {@inheritdoc}
*/
public static function extendedSettings() {
return [
'thumbnail' => '',
] + self::imageSettings() + parent::extendedSettings();
}
/**
* Returns HTML or layout related settings to shut up notices.
*
* @return array
* The default settings.
*/
public static function htmlSettings() {
return [
'breaking' => FALSE,
'display' => 'main',
'grid' => 0,
'id' => '',
'lazy' => '',
'library' => 'slick',
'namespace' => 'slick',
'nav' => FALSE,
'navpos' => FALSE,
'thumbnail_uri' => '',
'route_name' => '',
'unslick' => FALSE,
'vanilla' => FALSE,
'vertical' => FALSE,
'vertical_tn' => FALSE,
'view_name' => '',
] + self::imageSettings();
}
/**
* Defines JS options required by theme_slick(), used with optimized option.
*/
public static function jsSettings() {
return [
'asNavFor' => '',
'downArrowTarget' => '',
'downArrowOffset' => '',
'lazyLoad' => 'ondemand',
'prevArrow' => 'Previous',
'nextArrow' => 'Next',
'pauseIcon' => 'slick-pause-icon',
'playIcon' => 'slick-play-icon',
'rows' => 1,
'slidesPerRow' => 1,
'slide' => '',
'slidesToShow' => 1,
'vertical' => FALSE,
];
}
/**
* Returns slick theme properties.
*/
public static function themeProperties() {
return [
'attached',
'attributes',
'items',
'options',
'optionset',
'settings',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SlickDefault:: |
public static | function | ||
SlickDefault:: |
public static | function | ||
SlickDefault:: |
public static | function | ||
SlickDefault:: |
public static | function | Returns HTML or layout related settings to shut up notices. | |
SlickDefault:: |
public static | function | ||
SlickDefault:: |
public static | function | Defines JS options required by theme_slick(), used with optimized option. | |
SlickDefault:: |
public static | function | Returns slick theme properties. |