You are here

public function BlazyDefault::alterableSettings in Blazy 8

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

Returns alterable plugin settings to pass the tests.

File

src/BlazyDefault.php, line 57

Class

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

Namespace

Drupal\blazy

Code

public function alterableSettings(array &$settings = []) {
  if (!isset(static::$alterableSettings)) {
    $context = [
      'class' => get_called_class(),
    ];
    \Drupal::moduleHandler()
      ->alter('blazy_base_settings', $settings, $context);
    static::$alterableSettings = $settings;
  }
  return static::$alterableSettings;
}