You are here

public function EntityCreateController::__construct in Entity API 8.0

Constructs a new EntityCreateController object.

Parameters

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

File

src/Controller/EntityCreateController.php, line 46
Contains \Drupal\entity\Controller\EntityCreateController.

Class

EntityCreateController
A generic controller for creating entities.

Namespace

Drupal\entity\Controller

Code

public function __construct(EntityTypeBundleInfoInterface $entity_type_bundle_info, RendererInterface $renderer) {
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  $this->renderer = $renderer;
}