You are here

public function YamlFormRequest::getYamlFormSubmissionEntities in YAML Form 8

Get the form submission and source entity for the current request.

Return value

array An array containing the form and source entity for the current request.

Overrides YamlFormRequestInterface::getYamlFormSubmissionEntities

File

src/YamlFormRequest.php, line 114

Class

YamlFormRequest
Handles form requests.

Namespace

Drupal\yamlform

Code

public function getYamlFormSubmissionEntities() {
  $yamlform_submission = $this->routeMatch
    ->getParameter('yamlform_submission');
  $source_entity = $this
    ->getCurrentSourceEntity('yamlform_submission');
  return [
    $yamlform_submission,
    $source_entity,
  ];
}