Skip to content
Snippets Groups Projects
Commit 4ee015f2 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5204: adding function to UWService to get the responsive image styles

parent b8a707e4
No related branches found
No related tags found
1 merge request!181ISTWCMS-5204: ensuring that image styles are created so that it can be used...
......@@ -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}
*/
......
......@@ -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.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment