You are here

public static function BlazyInterface::transformDimensions in Blazy 7

Transforms dimensions using an image style.

Parameters

string $image_style: The image style.

object $item: The optional image item.

Return value

array An array containing width and height transformed by the image style.

File

src/BlazyInterface.php, line 21

Class

BlazyInterface
Defines re-usable services and functions for blazy plugins.

Namespace

Drupal\blazy

Code

public static function transformDimensions($image_style, $item = NULL);