You are here

class SlickDefault in Slick Carousel 8

Same name and namespace in other branches
  1. 8.2 src/SlickDefault.php \Drupal\slick\SlickDefault
  2. 7.3 src/SlickDefault.php \Drupal\slick\SlickDefault

Defines shared plugin default settings for field formatter and Views style.

Hierarchy

Expanded class hierarchy of SlickDefault

See also

FormatterBase::defaultSettings()

StylePluginBase::defineOptions()

4 files declare their use of SlickDefault
slick.module in ./slick.module
Slick carousel integration, the last carousel you'll ever need.
SlickEntityFormatterBase.php in src/Plugin/Field/FieldFormatter/SlickEntityFormatterBase.php
SlickFileFormatterBase.php in src/Plugin/Field/FieldFormatter/SlickFileFormatterBase.php
SlickTextFormatter.php in src/Plugin/Field/FieldFormatter/SlickTextFormatter.php

File

src/SlickDefault.php, line 13

Namespace

Drupal\slick
View source
class SlickDefault extends BlazyDefault {

  /**
   * {@inheritdoc}
   */
  public static function baseSettings() {
    return [
      'override' => FALSE,
      'overridables' => [],
      'skin_arrows' => '',
      'skin_dots' => '',
    ] + parent::baseSettings();
  }

  /**
   * {@inheritdoc}
   */
  public static function imageSettings() {
    return [
      'optionset_thumbnail' => '',
      'preserve_keys' => FALSE,
      'skin_thumbnail' => '',
      'thumbnail_caption' => '',
      'thumbnail_effect' => '',
      'thumbnail_position' => '',
      'visible_items' => 0,
    ] + self::baseSettings() + parent::imageSettings() + parent::gridSettings();
  }

  /**
   * {@inheritdoc}
   */
  public static function extendedSettings() {
    return [
      'thumbnail' => '',
    ] + self::imageSettings() + parent::extendedSettings();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BlazyDefault::$alterableSettings private static property The alterable settings.
BlazyDefault::$breakpoints private static property The supported $breakpoints.
BlazyDefault::$instance private static property The current class instance.
BlazyDefault::alterableSettings public function Returns alterable plugin settings to pass the tests.
BlazyDefault::baseImageSettings public static function Returns image-related field formatter and Views settings.
BlazyDefault::entitySettings public static function Returns sensible default options common for entities lacking of UI.
BlazyDefault::getConstantBreakpoints public static function Returns Blazy specific breakpoints.
BlazyDefault::getInstance public static function Returns the static instance of this class.
BlazyDefault::gridSettings public static function Returns optional grid field formatter and Views settings.
BlazyDefault::itemSettings public static function Returns sensible default html settings to shutup notices when lacking.
BlazyDefault::lazySettings public static function Returns sensible default options common for Views lacking of UI.
BlazyDefault::TAGS constant Defines constant for the supported text tags.
BlazyDefault::themeAttributes public static function Returns additional/ optional blazy theme attributes.
BlazyDefault::themeProperties public static function Returns blazy theme properties, its image and container attributes.
BlazyDefault::uiSettings public static function Returns shared global form settings which should be consumed at formatters.
BlazyDefault::viewsSettings public static function Returns Views specific settings.
SlickDefault::baseSettings public static function Returns basic plugin settings. Overrides BlazyDefault::baseSettings
SlickDefault::extendedSettings public static function Returns fieldable entity formatter and Views settings. Overrides BlazyDefault::extendedSettings
SlickDefault::imageSettings public static function Returns image-related field formatter and Views settings. Overrides BlazyDefault::imageSettings