You are here

protected function ControllerBase::entityFormBuilder in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Controller/ControllerBase.php \Drupal\Core\Controller\ControllerBase::entityFormBuilder()
  2. 9 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.

14 calls to ControllerBase::entityFormBuilder()
BlockAddController::blockAddConfigureForm in core/modules/block/src/Controller/BlockAddController.php
Build the block instance add form.
BlockContentController::addForm in core/modules/block_content/src/Controller/BlockContentController.php
Presents the custom block creation form.
CommentController::getReplyForm in core/modules/comment/src/Controller/CommentController.php
Form constructor for the comment reply form.
ContactController::contactPersonalPage in core/modules/contact/src/Controller/ContactController.php
Form constructor for the personal contact form.
ContactController::contactSitePage in core/modules/contact/src/Controller/ContactController.php
Presents the site-wide contact form.

... See full list

File

core/lib/Drupal/Core/Controller/ControllerBase.php, line 131

Class

ControllerBase
Utility base class for thin controllers.

Namespace

Drupal\Core\Controller

Code

protected function entityFormBuilder() {
  if (!$this->entityFormBuilder) {
    $this->entityFormBuilder = $this
      ->container()
      ->get('entity.form_builder');
  }
  return $this->entityFormBuilder;
}