You are here

public function HeartbeatStreamForm::__construct in Heartbeat 8

PHP 5 allows developers to declare constructor methods for classes. Classes which have a constructor method call this method on each newly-created object, so it is suitable for any initialization that the object may need before it is used.

Note: Parent constructors are not called implicitly if the child class defines a constructor. In order to run a parent constructor, a call to parent::__construct() within the child constructor is required.

param [ mixed $args [, $... ]]

Parameters

TreeBuilder $tree_builder:

Renderer $renderer:

Throws

\Exception

Overrides ContentEntityForm::__construct

File

src/Form/HeartbeatStreamForm.php, line 62

Class

HeartbeatStreamForm
Form controller for Heartbeat stream edit forms.

Namespace

Drupal\heartbeat\Form

Code

public function __construct(HeartbeatTypeService $heartbeatTypeService, EntityManager $entityManager) {
  parent::__construct($entityManager);
  $this->heartbeatTypeService = $heartbeatTypeService;
}