You are here

public function YamlFormSubmission::getTokenUrl in YAML Form 8

Gets the form submission's secure tokenized URL.

Return value

\Drupal\Core\Url The the form submission's secure tokenized URL.

Overrides YamlFormSubmissionInterface::getTokenUrl

File

src/Entity/YamlFormSubmission.php, line 421

Class

YamlFormSubmission
Defines the YamlFormSubmission entity.

Namespace

Drupal\yamlform\Entity

Code

public function getTokenUrl() {
  return $this
    ->getSourceUrl()
    ->setOption('query', [
    'token' => $this->token->value,
  ]);
}