You are here

public function YamlFormSubmissionForm::__construct in YAML Form 8

Constructs a YamlFormSubmissionForm object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

\Drupal\yamlform\YamlFormRequestInterface $request_handler: The form request handler.

\Drupal\yamlform\YamlFormElementManagerInterface $element_manager: The form element manager.

\Drupal\yamlform\YamlFormThirdPartySettingsManagerInterface $third_party_settings_manager: The form third party settings manager.

\Drupal\yamlform\YamlFormMessageManagerInterface $message_manager: The form message manager.

\Drupal\yamlform\YamlFormTokenManagerInterface $token_manager: The token manager.

Overrides ContentEntityForm::__construct

File

src/YamlFormSubmissionForm.php, line 104

Class

YamlFormSubmissionForm
Provides a form to collect and edit submissions.

Namespace

Drupal\yamlform

Code

public function __construct(EntityManagerInterface $entity_manager, YamlFormRequestInterface $request_handler, YamlFormElementManagerInterface $element_manager, YamlFormThirdPartySettingsManagerInterface $third_party_settings_manager, YamlFormMessageManagerInterface $message_manager, YamlFormTokenManagerInterface $token_manager) {
  parent::__construct($entity_manager);
  $this->requestHandler = $request_handler;
  $this->elementManager = $element_manager;
  $this->storage = $this->entityManager
    ->getStorage('yamlform_submission');
  $this->thirdPartySettingsManager = $third_party_settings_manager;
  $this->messageManager = $message_manager;
  $this->tokenManager = $token_manager;
}