X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=inline;f=web%2Fcore%2Fmodules%2Fimage%2Fsrc%2FImageStyleInterface.php;fp=web%2Fcore%2Fmodules%2Fimage%2Fsrc%2FImageStyleInterface.php;h=7dec361075534744ef3629810b0dd85e979aa678;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=89fd060a2897c6a02fdb89d439d7a65904e22679;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/image/src/ImageStyleInterface.php b/web/core/modules/image/src/ImageStyleInterface.php index 89fd060a2..7dec36107 100644 --- a/web/core/modules/image/src/ImageStyleInterface.php +++ b/web/core/modules/image/src/ImageStyleInterface.php @@ -194,4 +194,15 @@ interface ImageStyleInterface extends ConfigEntityInterface { */ public function deleteImageEffect(ImageEffectInterface $effect); + /** + * Determines if this style can be applied to a given image. + * + * @param string $uri + * The URI of the image. + * + * @return bool + * TRUE if the image is supported, FALSE otherwise. + */ + public function supportsUri($uri); + }