You are here

public function BlazyAdminTrait::admin in Blazy 7

Returns the blazy admin service.

File

src/Form/BlazyAdminTrait.php, line 23

Class

BlazyAdminTrait
A Trait common for blazy-related plugins.

Namespace

Drupal\blazy\Form

Code

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