You are here

public function YamlFormRequestInterface::getRouteName in YAML Form 8

Get the route name for a form/submission and source entity.

Parameters

\Drupal\Core\Entity\EntityInterface $yamlform_entity: A form or form submission.

\Drupal\Core\Entity\EntityInterface|null $source_entity: A form submission's source entity.

string $route_name: The route name.

Return value

string A route name prefixed with 'entity.{entity_type_id}' or just 'entity'.

1 method overrides YamlFormRequestInterface::getRouteName()
YamlFormRequest::getRouteName in src/YamlFormRequest.php
Get the route name for a form/submission and source entity.

File

src/YamlFormRequestInterface.php, line 66

Class

YamlFormRequestInterface
Provides an interface defining a form request handler.

Namespace

Drupal\yamlform

Code

public function getRouteName(EntityInterface $yamlform_entity, EntityInterface $source_entity = NULL, $route_name);