public function ImageStylesProviderInterface::entityIsImage in Consumer Image Styles 4.x
Checks if an entity is an image.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
Return value
bool TRUE if the entity is an image. {inheritdoc}
1 method overrides ImageStylesProviderInterface::entityIsImage()
- ImageStylesProvider::entityIsImage in src/
ImageStylesProvider.php - {inheritdoc}
File
- src/
ImageStylesProviderInterface.php, line 50
Class
- ImageStylesProviderInterface
- Interface for consumer image style providers.
Namespace
Drupal\consumer_image_stylesCode
public function entityIsImage(EntityInterface $entity);