You are here

public static function BlazyDefault::baseSettings in Blazy 7

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

Returns basic plugin settings: text, image, file, entities with grids.

2 calls to BlazyDefault::baseSettings()
BlazyDefault::imageSettings in src/BlazyDefault.php
Returns image-related field formatter and Views settings.
BlazyTextFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/BlazyTextFormatter.php
Returns default settings.

File

src/BlazyDefault.php, line 49

Class

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

Namespace

Drupal\blazy

Code

public static function baseSettings() {
  $settings = [
    'cache' => 0,
    'current_view_mode' => 'default',
  ] + self::gridSettings() + self::anywhereSettings();
  $context = [
    'class' => get_called_class(),
  ];
  drupal_alter('blazy_base_settings', $settings, $context);
  return $settings;
}