You are here

public function WebformCompositeForm::__construct in Webform Composite Tools 8

Constructs an WebformCompositeForm object.

Parameters

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

\Drupal\Core\Session\AccountInterface $current_user: The current user.

\Drupal\webform\Plugin\WebformElementManagerInterface $element_manager: The webform element manager.

File

src/Form/WebformCompositeForm.php, line 50

Class

WebformCompositeForm
Form handler for the Composite add and edit forms.

Namespace

Drupal\webform_composite\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, WebformElementManagerInterface $element_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->currentUser = $current_user;
  $this->elementManager = $element_manager;
}