You are here

public static function BlazyDefault::imageSettings in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::imageSettings()
  2. 7 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::imageSettings()

Returns image-related field formatter and Views settings.

3 calls to BlazyDefault::imageSettings()
BlazyDefault::extendedSettings in src/BlazyDefault.php
Returns fieldable entity formatter and Views settings.
BlazyDefault::itemSettings in src/BlazyDefault.php
Returns sensible default html settings to shutup notices when lacking.
BlazyFileFormatterBase::defaultSettings in src/Plugin/Field/FieldFormatter/BlazyFileFormatterBase.php
Defines the default settings for this plugin.

File

src/BlazyDefault.php, line 106

Class

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

Namespace

Drupal\blazy

Code

public static function imageSettings() {
  return [
    'iframe_lazy' => TRUE,
    'icon' => '',
    'layout' => '',
    'thumbnail_style' => '',
    'view_mode' => '',
  ] + self::baseSettings() + self::baseImageSettings();
}