You are here

public function BlazyTestEntityReferenceFormatterTest::buildSettings in Blazy 8.2

Same name and namespace in other branches
  1. 8 tests/modules/blazy_test/src/Plugin/Field/FieldFormatter/BlazyTestEntityReferenceFormatterTest.php \Drupal\blazy_test\Plugin\Field\FieldFormatter\BlazyTestEntityReferenceFormatterTest::buildSettings()

Builds the settings.

Overrides BlazyFormatterTrait::buildSettings

1 call to BlazyTestEntityReferenceFormatterTest::buildSettings()
BlazyTestEntityReferenceFormatterTest::viewElements in tests/modules/blazy_test/src/Plugin/Field/FieldFormatter/BlazyTestEntityReferenceFormatterTest.php
Builds a renderable array for a field value.

File

tests/modules/blazy_test/src/Plugin/Field/FieldFormatter/BlazyTestEntityReferenceFormatterTest.php, line 81

Class

BlazyTestEntityReferenceFormatterTest
Plugin implementation of the 'Blazy Entity Reference' formatter.

Namespace

Drupal\blazy_test\Plugin\Field\FieldFormatter

Code

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