public function ConvertImageEffect::getDerivativeExtension in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php \Drupal\image\Plugin\ImageEffect\ConvertImageEffect::getDerivativeExtension()
Returns the extension the derivative would have have 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 ImageEffectBase::getDerivativeExtension
File
- core/
modules/ image/ src/ Plugin/ ImageEffect/ ConvertImageEffect.php, line 40 - Contains \Drupal\image\Plugin\ImageEffect\ConvertImageEffect.
Class
- ConvertImageEffect
- Converts an image resource.
Namespace
Drupal\image\Plugin\ImageEffectCode
public function getDerivativeExtension($extension) {
return $this->configuration['extension'];
}