You are here

public function GridStackEntityFormatterBase::buildSettings in GridStack 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/GridStackEntityFormatterBase.php \Drupal\gridstack\Plugin\Field\FieldFormatter\GridStackEntityFormatterBase::buildSettings()

Builds the settings.

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

File

src/Plugin/Field/FieldFormatter/GridStackEntityFormatterBase.php, line 100

Class

GridStackEntityFormatterBase
Base class for gridstack entity reference formatters without field details.

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();
  $settings['vanilla'] = TRUE;
  return $settings;
}