You are here

public function BlazyVideoTrait::getImageItem in Blazy 8.2

Same name and namespace in other branches
  1. 8 src/Dejavu/BlazyVideoTrait.php \Drupal\blazy\Dejavu\BlazyVideoTrait::getImageItem()

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

@todo enable post RC before release release. @todo deprecated in blazy:8.x-2.0 and is removed from blazy:8.x-3.0. Use BlazyOEmbed::getImageItem() instead.

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.

See also

https://www.drupal.org/node/3103018

File

src/Dejavu/BlazyVideoTrait.php, line 71

Class

BlazyVideoTrait
A Trait common for Media integration.

Namespace

Drupal\blazy\Dejavu

Code

public function getImageItem($file) {

  // @todo enable post release @trigger_error('getImageItem is deprecated in blazy:8.x-2.0 and is removed from blazy:8.x-3.0. Use \Drupal\blazy\BlazyOEmbed::getImageItem() instead. See https://www.drupal.org/node/3103018', E_USER_DEPRECATED);
  return $this
    ->blazyOembed()
    ->getImageItem($file);
}