You are here

public static function SlickDefault::htmlSettings in Slick Carousel 8.2

Same name and namespace in other branches
  1. 7.3 src/SlickDefault.php \Drupal\slick\SlickDefault::htmlSettings()

Returns HTML or layout related settings to shut up notices.

Return value

array The default settings.

4 calls to SlickDefault::htmlSettings()
SlickManager::prepareSettings in src/SlickManager.php
Prepare settings for the known module features, not necessarily users'.
SlickManager::preRenderSlick in src/SlickManager.php
Builds the Slick instance as a structured array ready for ::renderer().
SlickManagerTest::testBuild in tests/src/Kernel/SlickManagerTest.php
Tests for Slick build.
template_preprocess_slick in templates/slick.theme.inc
Prepares variables for slick.html.twig templates.

File

src/SlickDefault.php, line 68

Class

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

Namespace

Drupal\slick

Code

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();
}