public function ImageEffectBase::getDerivativeExtension in Drupal 8
Same name and namespace in other branches
- 9 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getDerivativeExtension()
Returns the extension of the derivative after applying this image effect.
Parameters
string $extension: The file extension the derivative has before applying.
Return value
string The file extension after applying.
Overrides ImageEffectInterface::getDerivativeExtension
1 method overrides ImageEffectBase::getDerivativeExtension()
- ConvertImageEffect::getDerivativeExtension in core/
modules/ image/ src/ Plugin/ ImageEffect/ ConvertImageEffect.php - Returns the extension of the derivative after applying this image effect.
File
- core/
modules/ image/ src/ ImageEffectBase.php, line 77
Class
- ImageEffectBase
- Provides a base class for image effects.
Namespace
Drupal\imageCode
public function getDerivativeExtension($extension) {
// Most image effects will not change the extension. This base
// implementation represents this behavior. Override this method if your
// image effect does change the extension.
return $extension;
}