function ResizeImageEffect::defaultConfiguration
Same name in other branches
- 9 core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php \Drupal\image\Plugin\ImageEffect\ResizeImageEffect::defaultConfiguration()
- 8.9.x core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php \Drupal\image\Plugin\ImageEffect\ResizeImageEffect::defaultConfiguration()
- 11.x core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php \Drupal\image\Plugin\ImageEffect\ResizeImageEffect::defaultConfiguration()
Overrides ImageEffectBase::defaultConfiguration
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 57
Class
- ResizeImageEffect
- Resizes an image resource.
Namespace
Drupal\image\Plugin\ImageEffectCode
public function defaultConfiguration() {
return [
'width' => NULL,
'height' => NULL,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.