protected function ControllerBase::entityFormBuilder in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::entityFormBuilder()
Retrieves the entity form builder.
Return value
\Drupal\Core\Entity\EntityFormBuilderInterface The entity form builder.
File
- core/
lib/ Drupal/ Core/ Controller/ ControllerBase.php, line 158 - Contains \Drupal\Core\Controller\ControllerBase.
Class
- ControllerBase
- Utility base class for thin controllers.
Namespace
Drupal\Core\ControllerCode
protected function entityFormBuilder() {
if (!$this->entityFormBuilder) {
$this->entityFormBuilder = $this
->container()
->get('entity.form_builder');
}
return $this->entityFormBuilder;
}