public function WebformResultsCustomForm::__construct in Webform 8.5
Constructs a WebformResultsCustomForm object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\webform\WebformRequestInterface $request_handler: The webform request handler.
File
- src/
Form/ WebformResultsCustomForm.php, line 101
Class
- WebformResultsCustomForm
- Webform for webform results custom(ize) webform.
Namespace
Drupal\webform\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, WebformRequestInterface $request_handler) {
$this->submissionStorage = $entity_type_manager
->getStorage('webform_submission');
$this->requestHandler = $request_handler;
list($this->webform, $this->sourceEntity) = $this->requestHandler
->getWebformEntities();
}