public function WebformSubmissionsDeleteFormBase::__construct in Webform 8.5
Constructs a WebformResultsDeleteFormBase 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/ WebformSubmissionsDeleteFormBase.php, line 74
Class
- WebformSubmissionsDeleteFormBase
- Base webform for deleting webform submission.
Namespace
Drupal\webform\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, WebformRequestInterface $request_handler) {
$this->entityTypeManager = $entity_type_manager;
$this->submissionStorage = $entity_type_manager
->getStorage('webform_submission');
$this->requestHandler = $request_handler;
list($this->webform, $this->sourceEntity) = $this->requestHandler
->getWebformEntities();
}