You are here

public function BlazyFileFormatter::blazyEntity in Blazy 7

Returns the blazy entity object.

File

src/Plugin/Field/FieldFormatter/BlazyFileFormatter.php, line 25

Class

BlazyFileFormatter
Plugin implementation of the 'Blazy File' to get videos within images/files.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

public function blazyEntity() {
  if (!isset($this->blazyEntity)) {
    $this->blazyEntity = new BlazyEntity($this->formatter);
  }
  return $this->blazyEntity;
}