public function SlickFormatter::buildSettings in Slick Carousel 8.2
Same name and namespace in other branches
- 8 src/SlickFormatter.php \Drupal\slick\SlickFormatter::buildSettings()
- 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\slickCode
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);
}