You are here

protected function YamlFormSubmissionListBuilder::getRouteParameters in YAML Form 8

Get route parameters for the form or form source entity.

Parameters

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

Return value

array Route parameters for the form or form source entity.

File

src/YamlFormSubmissionListBuilder.php, line 542

Class

YamlFormSubmissionListBuilder
Provides a list controller for yamlform submission entity.

Namespace

Drupal\yamlform

Code

protected function getRouteParameters(YamlFormSubmissionInterface $yamlform_submission) {
  $route_parameters = [
    'yamlform_submission' => $yamlform_submission
      ->id(),
  ];
  if ($this->sourceEntity) {
    $route_parameters[$this->sourceEntity
      ->getEntityTypeId()] = $this->sourceEntity
      ->id();
  }
  return $route_parameters;
}