public function ImageStylesProviderInterface::loadStyles in Consumer Image Styles 4.x
Same name and namespace in other branches
- 8.2 src/ImageStylesProviderInterface.php \Drupal\consumer_image_styles\ImageStylesProviderInterface::loadStyles()
Load the image styles for a given consumer.
Parameters
\Drupal\consumers\Entity\Consumer $consumer: Consumer entity to load image styles for.
Return value
\Drupal\image\Entity\ImageStyle[] List of image styles keyed by image style id.
1 method overrides ImageStylesProviderInterface::loadStyles()
- ImageStylesProvider::loadStyles in src/
ImageStylesProvider.php - Load the image styles for a given consumer.
File
- src/
ImageStylesProviderInterface.php, line 23
Class
- ImageStylesProviderInterface
- Interface for consumer image style providers.
Namespace
Drupal\consumer_image_stylesCode
public function loadStyles(Consumer $consumer);