protected function ControllerBase::formBuilder in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::formBuilder()
- 9 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::formBuilder()
Returns the form builder service.
Return value
\Drupal\Core\Form\FormBuilderInterface
9 calls to ControllerBase::formBuilder()
- DbLogController::overview in core/
modules/ dblog/ src/ Controller/ DbLogController.php - Displays a listing of database log messages.
- FormTestController::storageLegacyHandler in core/
modules/ system/ tests/ modules/ form_test/ src/ Controller/ FormTestController.php - Emulate legacy AHAH-style ajax callback.
- LocaleController::translatePage in core/
modules/ locale/ src/ Controller/ LocaleController.php - Shows the string search screen.
- QuickEditController::fieldForm in core/
modules/ quickedit/ src/ QuickEditController.php - Returns a single field edit form as an Ajax response.
- SearchController::view in core/
modules/ search/ src/ Controller/ SearchController.php - Creates a render array for the search page.
File
- core/
lib/ Drupal/ Core/ Controller/ ControllerBase.php, line 225
Class
- ControllerBase
- Utility base class for thin controllers.
Namespace
Drupal\Core\ControllerCode
protected function formBuilder() {
if (!$this->formBuilder) {
$this->formBuilder = $this
->container()
->get('form_builder');
}
return $this->formBuilder;
}