You are here

public function HeartbeatForm::__construct in Heartbeat 8

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

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

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides ContentEntityForm::__construct

File

src/Form/HeartbeatForm.php, line 34

Class

HeartbeatForm
Form controller for Heartbeat edit forms.

Namespace

Drupal\heartbeat\Form

Code

public function __construct(EntityTypeManager $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {

  //    parent::__construct($entity_type_bundle_info, $time);
  $this->nodeManager = $entity_type_manager
    ->getStorage('node');
}