function ImageEffectBase::getDerivativeExtension

Same name in other branches
  1. 9 core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getDerivativeExtension()
  2. 8.9.x core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getDerivativeExtension()
  3. 11.x core/modules/image/src/ImageEffectBase.php \Drupal\image\ImageEffectBase::getDerivativeExtension()

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\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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.