You are here

protected function FormTestBase::formBuilder in Purge 8.3

Return the form builder instance.

Return value

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

1 call to FormTestBase::formBuilder()
AjaxFormTestBase::postAjaxForm in modules/purge_ui/tests/src/Functional/Form/AjaxFormTestBase.php
Submits a ajax form through http_kernel.

File

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

Class

FormTestBase
Testbase for purge_ui forms.

Namespace

Drupal\Tests\purge_ui\Functional\Form

Code

protected function formBuilder() : FormBuilderInterface {
  if (is_null($this->formBuilder)) {
    $this->formBuilder = $this->container
      ->get('form_builder');
  }
  return $this->formBuilder;
}