W3cubDocs

/Drupal 8

protected function DraggableListBuilder::formBuilder

protected DraggableListBuilder::formBuilder()

Returns the form builder.

Return value

\Drupal\Core\Form\FormBuilderInterface The form builder.

File

core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php, line 171

Class

DraggableListBuilder
Defines a class to build a draggable listing of configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

protected function formBuilder() {
  if (!$this->formBuilder) {
    $this->formBuilder = \Drupal::formBuilder();
  }
  return $this->formBuilder;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!DraggableListBuilder.php/function/DraggableListBuilder::formBuilder/8.1.x