You are here

public function SlickFormatter::buildSettings in Slick Carousel 7.3

Same name and namespace in other branches
  1. 8.2 src/SlickFormatter.php \Drupal\slick\SlickFormatter::buildSettings()
  2. 8 src/SlickFormatter.php \Drupal\slick\SlickFormatter::buildSettings()

Overrides BlazyFormatter::buildSettings

File

src/SlickFormatter.php, line 16

Class

SlickFormatter
Implements SlickFormatterInterface.

Namespace

Drupal\slick

Code

public function buildSettings(array &$build, $items, $entity) {
  $settings =& $build['settings'];

  // Prepare integration with Blazy.
  $settings['item_id'] = 'slide';
  $settings['namespace'] = 'slick';

  // Pass basic info to parent::buildSettings().
  parent::buildSettings($build, $items, $entity);
}