You are here

public function BlazyEntityBase::blazyEntity in Blazy 7

Returns the blazy entity object.

File

src/Plugin/Field/FieldFormatter/BlazyEntityBase.php, line 27

Class

BlazyEntityBase
Base class for entity reference formatters without field details.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

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