You are here

public function SlickFormatter::buildSettings in Slick Carousel 8.2

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

Modifies the field formatter settings inherited by child elements.

Parameters

array $build: The array containing: settings, or potential optionset for extensions.

object $items: The Drupal\Core\Field\FieldItemListInterface items.

Overrides BlazyFormatter::buildSettings

File

src/SlickFormatter.php, line 17

Class

SlickFormatter
Provides Slick field formatters utilities.

Namespace

Drupal\slick

Code

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

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

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