Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImageEffectBase.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal