public function BlazyVideoTrait::getMediaItem in Blazy 8.2
Same name and namespace in other branches
- 8 src/Dejavu/BlazyVideoTrait.php \Drupal\blazy\Dejavu\BlazyVideoTrait::getMediaItem()
Gets the Media item thumbnail, or re-associate the file entity to ME.
@todo remove post Blazy 8.2.x when blazy-plugins use core Media.
Parameters
array $data: An array of data containing settings, and potential video thumbnail item.
object $media: The core Media entity.
Deprecated
in blazy:8.x-2.0 and is removed from blazy:8.x-3.0. Use BlazyOEmbed::getMediaItem() instead.
See also
https://www.drupal.org/node/3103018
File
- src/
Dejavu/ BlazyVideoTrait.php, line 90
Class
- BlazyVideoTrait
- A Trait common for Media integration.
Namespace
Drupal\blazy\DejavuCode
public function getMediaItem(array &$data = [], $media = NULL) {
@trigger_error('getMediaItem is deprecated in blazy:8.x-2.0 and is removed from blazy:8.x-3.0. Use \\Drupal\\blazy\\BlazyOEmbed::getMediaItem() instead. See https://www.drupal.org/node/3103018', E_USER_DEPRECATED);
$this
->blazyOembed()
->getMediaItem($data, $media);
}