You are here

public static function Drupal::formBuilder in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal.php \Drupal::formBuilder()

Returns the form builder service.

Return value

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

5 calls to Drupal::formBuilder()
ConfigTranslationFormTest::testConfigTranslationFormAlter in core/modules/config_translation/src/Tests/ConfigTranslationFormTest.php
Tests altering of the configuration translation forms.
DraggableListBuilder::formBuilder in core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
Returns the form builder.
DrupalTest::testFormBuilder in core/tests/Drupal/Tests/Core/DrupalTest.php
Tests the formBuilder() method.
install_get_form in core/includes/install.core.inc
Builds and processes a form for the installer environment.
WidgetBase::flagErrors in core/lib/Drupal/Core/Field/WidgetBase.php
Reports field-level validation errors against actual form elements.

File

core/lib/Drupal.php, line 631
Contains \Drupal.

Class

Drupal
Static Service Container wrapper.

Code

public static function formBuilder() {
  return static::getContainer()
    ->get('form_builder');
}