public function ResizeImageEffect::defaultConfiguration in Drupal 9
Same name and namespace in other branches
- 8 core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php \Drupal\image\Plugin\ImageEffect\ResizeImageEffect::defaultConfiguration()
- 10 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 56
Class
- ResizeImageEffect
- Resizes an image resource.
Namespace
Drupal\image\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'width' => NULL,
'height' => NULL,
];
}