You are here

public static function CropInterface::cropExists in Crop API 8

Same name and namespace in other branches
  1. 8.2 src/CropInterface.php \Drupal\crop\CropInterface::cropExists()

Checks whether crop exists for an image.

Parameters

string $uri: URI of image to check for.

string $type: (Optional) Type of crop. Function will check across all available types if omitted.

Return value

bool Boolean TRUE if crop exists and FALSE if not.

1 method overrides CropInterface::cropExists()
Crop::cropExists in src/Entity/Crop.php
Checks whether crop exists for an image.

File

src/CropInterface.php, line 86

Class

CropInterface
Provides an interface defining the crop entity.

Namespace

Drupal\crop

Code

public static function cropExists($uri, $type = NULL);