Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Drupal.php

function Drupal::formBuilder

Returns the form builder service.

Return value

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

2 calls to Drupal::formBuilder()
DraggableListBuilder::__construct in core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
Constructs a new EntityListBuilder object.
install_get_form in core/includes/install.core.inc
Builds and processes a form for the installer environment.

File

core/lib/Drupal.php, line 642

Class

Drupal
Static Service Container wrapper.

Code

public static function formBuilder() {
    return static::getContainer()->get('form_builder');
}
RSS feed
Powered by Drupal