You are here

public function ConvertImageEffect::getDerivativeExtension in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php \Drupal\image\Plugin\ImageEffect\ConvertImageEffect::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 ImageEffectBase::getDerivativeExtension

File

core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php, line 34

Class

ConvertImageEffect
Converts an image resource.

Namespace

Drupal\image\Plugin\ImageEffect

Code

public function getDerivativeExtension($extension) {
  return $this->configuration['extension'];
}