public function WebformRevisions::getSubmissionForm in Config Entity Revisions 8
Get webform submission webform.
Parameters
array $values: (optional) An array of values to set, keyed by property name.
string $operation: (optional) The operation identifying the webform submission form variation to be returned. Defaults to 'add'. This is typically used in routing.
Return value
array A render array representing a webform submission webform.
Overrides Webform::getSubmissionForm
File
- modules/
webform_revisions/ src/ Entity/ WebformRevisions.php, line 82
Class
Namespace
Drupal\webform_revisions\EntityCode
public function getSubmissionForm(array $values = [], $operation = 'add') {
// If invoked by WebformEntityController->addForm, ensure the webform revision
// used is influenced by the path.
if (empty($values) && $operation == 'add') {
$values['webform'] = $this;
}
return parent::getSubmissionForm($values, $operation);
}