public static function Drupal::formBuilder in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal.php \Drupal::formBuilder()
Returns the form builder service.
Return value
\Drupal\Core\Form\FormBuilderInterface The form builder.
3 calls to Drupal::formBuilder()
- 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.
File
- core/
lib/ Drupal.php, line 683 - Contains \Drupal.
Class
- Drupal
- Static Service Container wrapper.
Code
public static function formBuilder() {
return static::getContainer()
->get('form_builder');
}