You are here

public function Toolbar::__construct in Workspace 8

Constructs a new Toolbar.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\multiversion\Workspace\WorkspaceManagerInterface $workspace_manager: The workspace manager service.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.

AccountInterface $current_user: The current user service.

File

src/Toolbar.php, line 58

Class

Toolbar
Service for hooks and utilities related to Toolbar integration.

Namespace

Drupal\workspace

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, WorkspaceManagerInterface $workspace_manager, FormBuilderInterface $form_builder, AccountInterface $current_user) {
  $this->entityTypeManager = $entity_type_manager;
  $this->workspaceManager = $workspace_manager;
  $this->formBuilder = $form_builder;
  $this->currentUser = $current_user;
}