You are here

public function WorkspaceForm::__construct in Workspace 8

Constructs a ContentEntityForm object.

@todo Add TimeInterface as parameter for constructor and use the value in parent constructor starting with Drupal 8.4.0.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager:

ConflictTrackerInterface $conflict_tracker: The conflict tracking service.

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info:

Overrides ContentEntityForm::__construct

File

src/Entity/Form/WorkspaceForm.php, line 45

Class

WorkspaceForm
Form controller for the workspace edit forms.

Namespace

Drupal\workspace\Entity\Form

Code

public function __construct(EntityManagerInterface $entity_manager, ConflictTrackerInterface $conflict_tracker, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL) {
  parent::__construct($entity_manager, $entity_type_bundle_info);
  $this->conflictTracker = $conflict_tracker;
}