diff --git a/src/Service/UWService.php b/src/Service/UWService.php index d2cb0b7d1a075e91ad57a4416f1fd6bc59a29293..032cfc37108f5d7974b818f8fa247870354ee883 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -146,6 +146,19 @@ class UWService implements UWServiceInterface { return []; } + /** + * {@inheritDoc} + */ + public function uwGetResponsiveImageStyles(): array { + return [ + 'uw_is_media_x_large', + 'uw_is_media_large', + 'uw_is_media_medium', + 'uw_is_media_small', + 'uw_is_media_x_small', + ]; + } + /** * {@inheritDoc} */ diff --git a/src/Service/UWServiceInterface.php b/src/Service/UWServiceInterface.php index 4eb197870705f7a07eb5aff153fffe36bc1849ba..3b0fab077ce9206075f6960ba0bb4cc0b6fb619e 100644 --- a/src/Service/UWServiceInterface.php +++ b/src/Service/UWServiceInterface.php @@ -36,6 +36,14 @@ interface UWServiceInterface { */ public function prepareResponsiveImage(EntityInterface $entity, string $image_style): array; + /** + * Get the UW images styles used in UW responsive image. + * + * @return array + * Array of image styles. + */ + public function uwGetResponsiveImageStyles(): array; + /** * Gets content types that have feature images. *