You are here

public function YamlFormRequest::getYamlFormEntities in YAML Form 8

Get the form and source entity for the current request.

Return value

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

Overrides YamlFormRequestInterface::getYamlFormEntities

File

src/YamlFormRequest.php, line 105

Class

YamlFormRequest
Handles form requests.

Namespace

Drupal\yamlform

Code

public function getYamlFormEntities() {
  $yamlform = $this
    ->getCurrentYamlForm();
  $source_entity = $this
    ->getCurrentSourceEntity('yamlform');
  return [
    $yamlform,
    $source_entity,
  ];
}