You are here

service form_builder in Drupal 8

Same name and namespace in other branches
  1. 9 core/core.services.yml \form_builder

Class

Drupal\Core\Form\FormBuilder
33 string references to form_builder
AjaxFormBlock::create in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
Creates an instance of the plugin.
BlockListBuilder::createInstance in core/modules/block/src/BlockListBuilder.php
Instantiates a new instance of this entity handler.
ConfigTranslationFormTest::testConfigTranslationFormAlter in core/modules/config_translation/tests/src/Kernel/ConfigTranslationFormTest.php
Tests altering of the configuration translation forms.
ControllerBase::formBuilder in core/lib/Drupal/Core/Controller/ControllerBase.php
Returns the form builder service.
DateTimeFormInjectionTest::testDatetimeSerialization in core/modules/datetime/tests/src/Kernel/DateTimeFormInjectionTest.php
Tests custom string injection serialization.

... See full list

File

core/core.services.yml
core/core.services.yml

View source
  1. class: Drupal\Core\Form\FormBuilder
  2. arguments:
  3. - '@form_validator'
  4. - '@form_submitter'
  5. - '@form_cache'
  6. - '@module_handler'
  7. - '@event_dispatcher'
  8. - '@request_stack'
  9. - '@class_resolver'
  10. - '@element_info'
  11. - '@theme.manager'
  12. - '@?csrf_token'