You are here

public static function GridStackDefault::imageSettings in GridStack 8

Same name and namespace in other branches
  1. 8.2 src/GridStackDefault.php \Drupal\gridstack\GridStackDefault::imageSettings()

Returns image-related field formatter and Views settings.

Overrides BlazyDefault::imageSettings

1 call to GridStackDefault::imageSettings()
GridStackFileFormatterBase::defaultSettings in src/Plugin/Field/FieldFormatter/GridStackFileFormatterBase.php

File

src/GridStackDefault.php, line 18

Class

GridStackDefault
Defines shared plugin default settings for field formatter and Views style.

Namespace

Drupal\gridstack

Code

public static function imageSettings() {
  $settings = parent::imageSettings();
  foreach ([
    'breakpoints',
    'responsive_image_style',
    'sizes',
  ] as $key) {
    unset($settings[$key]);
  }
  return [
    'background' => TRUE,
  ] + $settings;
}