You are here

public function AdvanceResizeImageEffect::defaultConfiguration in image effect 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/ImageEffect/AdvanceResizeImageEffect.php \Drupal\image_effect\Plugin\ImageEffect\AdvanceResizeImageEffect::defaultConfiguration()
  2. 1.0.x src/Plugin/ImageEffect/AdvanceResizeImageEffect.php \Drupal\image_effect\Plugin\ImageEffect\AdvanceResizeImageEffect::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ImageEffectBase::defaultConfiguration

File

src/Plugin/ImageEffect/AdvanceResizeImageEffect.php, line 57

Class

AdvanceResizeImageEffect
Resizes an image resource in advance.

Namespace

Drupal\image_effect\Plugin\ImageEffect

Code

public function defaultConfiguration() {
  return [
    'width' => NULL,
    'height' => NULL,
  ];
}