You are here

public static function CropInterface::getCropFromImageStyleId in Crop API 8.2

Retrieve crop from given image style.

Parameters

string $uri: URI of the image.

string $image_style_id: The image style id.

Return value

\Drupal\crop\CropInterface|null Crop entity used by effect 'crop_crop' or NULL if crop doesn't exist.

1 method overrides CropInterface::getCropFromImageStyleId()
Crop::getCropFromImageStyleId in src/Entity/Crop.php
Retrieve crop from given image style.

File

src/CropInterface.php, line 127

Class

CropInterface
Provides an interface defining the crop entity.

Namespace

Drupal\crop

Code

public static function getCropFromImageStyleId($uri, $image_style_id);