You are here

public function BlazyFormatterBlazy::admin in Blazy 7

Returns the blazy admin service for blazy-related module.

Overrides BlazyFormatterBase::admin

File

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

Class

BlazyFormatterBlazy
Plugin implementation of the `Blazy File` or `Blazy Image` for Blazy only.

Namespace

Drupal\blazy\Plugin\Field\FieldFormatter

Code

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