You are here

public static function BlazyMediaInterface::build in Blazy 8.2

Builds the media field which is not understood by theme_blazy().

@todo make it non-static method.

Parameters

object $media: The media being rendered.

array $settings: The contextual settings array.

Return value

array|bool The renderable array of the media field, or false if not applicable.

1 method overrides BlazyMediaInterface::build()
BlazyMedia::build in src/BlazyMedia.php
Builds the media field which is not understood by theme_blazy().

File

src/BlazyMediaInterface.php, line 35

Class

BlazyMediaInterface
Provides extra utilities to work with core Media.

Namespace

Drupal\blazy

Code

public static function build($media, array $settings = []);