You are here

public function BlazyOEmbedInterface::getImageItem in Blazy 8.2

Gets the faked image item out of file entity, or ER, if applicable.

@todo this is likely to be removed for anything Media, still kept for BlazyFilter and few legacy file entity integrations such as Views file.

Parameters

object $file: The expected file entity, or ER, to get image item from.

Return value

array The array of image item and settings if a file image, else empty.

1 method overrides BlazyOEmbedInterface::getImageItem()
BlazyOEmbed::getImageItem in src/BlazyOEmbed.php
@todo compare and merge with BlazyMedia::imageItem().

File

src/BlazyOEmbedInterface.php, line 62

Class

BlazyOEmbedInterface
Provides OEmbed integration.

Namespace

Drupal\blazy

Code

public function getImageItem($file);