You are here

public function ResizeImageEffect::defaultConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php \Drupal\image\Plugin\ImageEffect\ResizeImageEffect::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ImageEffectBase::defaultConfiguration

2 calls to ResizeImageEffect::defaultConfiguration()
CropImageEffect::defaultConfiguration in core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php
Gets default configuration for this plugin.
ScaleImageEffect::defaultConfiguration in core/modules/image/src/Plugin/ImageEffect/ScaleImageEffect.php
Gets default configuration for this plugin.
2 methods override ResizeImageEffect::defaultConfiguration()
CropImageEffect::defaultConfiguration in core/modules/image/src/Plugin/ImageEffect/CropImageEffect.php
Gets default configuration for this plugin.
ScaleImageEffect::defaultConfiguration in core/modules/image/src/Plugin/ImageEffect/ScaleImageEffect.php
Gets default configuration for this plugin.

File

core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php, line 61
Contains \Drupal\image\Plugin\ImageEffect\ResizeImageEffect.

Class

ResizeImageEffect
Resizes an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

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