You are here

public function AjaxFormBase::getFormId in Forena Reports 8

Throws

\Exception Thrown when a programmer does not implement a FORM_ID constant.

Overrides FormInterface::getFormId

File

src/Form/AjaxFormBase.php, line 40

Class

AjaxFormBase
Class AjaxFormTrait

Namespace

Drupal\forena\Form

Code

public function getFormId() {
  if (static::FORM_ID == AjaxFormBase::FORM_ID) {
    $class = get_class($this);
    throw new \Exception("FORM_ID class constant not implemented in {$class}");
  }
  return static::FORM_ID;
}