ControllerBase::entityFormBuilder

protected 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 155

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;
}
doc_Drupal
2016-10-29 08:58:56
Comments
Leave a Comment

Please login to continue.