You are here

public static function AjaxPageControllerBase::service in Forena Reports 8

Singleton factory method.

Return value

static

4 calls to AjaxPageControllerBase::service()
AjaxFormBase::__construct in src/Form/AjaxFormBase.php
Set controller based on sinbleton. AjaxFormBase constructor.
AjaxFormBase::__wakeup in src/Form/AjaxFormBase.php
AjaxFormTrait::__wakeup in src/Form/AjaxFormTrait.php
ReportModalForm::buildForm in src/Form/ReportModalForm.php
Form constructor.

File

src/Controller/AjaxPageControllerBase.php, line 139

Class

AjaxPageControllerBase

Namespace

Drupal\forena\Controller

Code

public static function service() {
  if (static::$instance === NULL) {
    static::$instance = new static();
  }
  return static::$instance;
}