You are here

public function GridStackFileFormatterBase::buildSettings in GridStack 8

Builds the settings.

1 call to GridStackFileFormatterBase::buildSettings()
GridStackFileFormatterBase::viewElements in src/Plugin/Field/FieldFormatter/GridStackFileFormatterBase.php

File

src/Plugin/Field/FieldFormatter/GridStackFileFormatterBase.php, line 83

Class

GridStackFileFormatterBase
Base class for gridstack image and file ER formatters.

Namespace

Drupal\gridstack\Plugin\Field\FieldFormatter

Code

public function buildSettings() {
  $settings = $this
    ->getSettings();
  $settings['blazy'] = TRUE;
  $settings['lazy'] = 'blazy';
  $settings['namespace'] = $settings['item_id'] = 'gridstack';
  $settings['plugin_id'] = $this
    ->getPluginId();
  return $settings;
}