function ImageEffectBase::transformDimensions

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

Overrides ImageEffectInterface::transformDimensions

4 methods override ImageEffectBase::transformDimensions()
NullTestImageEffect::transformDimensions in core/modules/image/tests/modules/image_module_test/src/Plugin/ImageEffect/NullTestImageEffect.php
Determines the dimensions of the styled image.
ResizeImageEffect::transformDimensions in core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php
Determines the dimensions of the styled image.
RotateImageEffect::transformDimensions in core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php
Determines the dimensions of the styled image.
UriDependentTestImageEffect::transformDimensions in core/modules/image/tests/modules/image_module_test/src/Plugin/ImageEffect/UriDependentTestImageEffect.php
Determines the dimensions of the styled image.

File

core/modules/image/src/ImageEffectBase.php, line 68

Class

ImageEffectBase
Provides a base class for image effects.

Namespace

Drupal\image

Code

public function transformDimensions(array &$dimensions, $uri) {
    // Most image effects will not change the dimensions. This base
    // implementation represents this behavior. Override this method if your
    // image effect does change the dimensions.
}

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