You are here

public static function BlazyDefault::imageSettings in Blazy 7

Same name and namespace in other branches
  1. 8.2 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::imageSettings()
  2. 8 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::htmlSettings in src/BlazyDefault.php
Returns sensible default container settings to shutup notices when lacking.
BlazyFormatterBase::defaultSettings in src/Plugin/Field/FieldFormatter/BlazyFormatterBase.php
Returns default settings.

File

src/BlazyDefault.php, line 105

Class

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

Namespace

Drupal\blazy

Code

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