function DraggableListBuilder::formBuilder

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php \Drupal\Core\Config\Entity\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 176

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.