ControllerBase::formBuilder

protected ControllerBase::formBuilder()

Returns the form builder service.

Return value

\Drupal\Core\Form\FormBuilderInterface

File

core/lib/Drupal/Core/Controller/ControllerBase.php, line 249

Class

ControllerBase
Utility base class for thin controllers.

Namespace

Drupal\Core\Controller

Code

protected function formBuilder() {
  if (!$this->formBuilder) {
    $this->formBuilder = $this->container()->get('form_builder');
  }
  return $this->formBuilder;
}
doc_Drupal
2016-10-29 08:58:57
Comments
Leave a Comment

Please login to continue.