You are here

protected function FormTestBase::formInstance in Purge 8.3

Return the same instance of a form.

Return value

\Drupal\Core\Form\FormInterface The form instance.

File

modules/purge_ui/tests/src/Functional/Form/FormTestBase.php, line 112

Class

FormTestBase
Testbase for purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

protected function formInstance() : FormInterface {
  if (is_null($this->formInstance)) {
    $this->formInstance = $this
      ->getFormInstance();
  }
  return $this->formInstance;
}