public function YamlFormRequestInterface::getBaseRouteName in YAML Form 8
Get the base 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.
Return value
string If the source entity has a form attached, 'entity.{entity_type_id}' or just 'entity'.
1 method overrides YamlFormRequestInterface::getBaseRouteName()
- YamlFormRequest::getBaseRouteName in src/
YamlFormRequest.php - Get the base route name for a form/submission and source entity.
File
- src/
YamlFormRequestInterface.php, line 93
Class
- YamlFormRequestInterface
- Provides an interface defining a form request handler.
Namespace
Drupal\yamlformCode
public function getBaseRouteName(EntityInterface $yamlform_entity, EntityInterface $source_entity = NULL);