You are here

public function ChannelForm::__construct in Entity Share 8

Same name and namespace in other branches
  1. 8.3 modules/entity_share_server/src/Form/ChannelForm.php \Drupal\entity_share_server\Form\ChannelForm::__construct()
  2. 8.2 modules/entity_share_server/src/Form/ChannelForm.php \Drupal\entity_share_server\Form\ChannelForm::__construct()

Constructs a ChannelForm object.

Parameters

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

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

File

modules/entity_share_server/src/Form/ChannelForm.php, line 44

Class

ChannelForm
Class ChannelForm.

Namespace

Drupal\entity_share_server\Form

Code

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