public ImageEffectBase::getDerivativeExtension($extension)
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 ImageEffectInterface::getDerivativeExtension
File
- core/modules/image/src/ImageEffectBase.php, line 77
Class
- ImageEffectBase
- Provides a base class for image effects.
Namespace
Drupal\image
Code
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; }
Please login to continue.