public function PageVariantAddWizard::getPreviousParameters in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Wizard/PageVariantAddWizard.php \Drupal\page_manager_ui\Wizard\PageVariantAddWizard::getPreviousParameters()
The Route parameters for a 'previous' step.
If your route requires more than machine_name and step keys, override and extend this method as needed.
Parameters
mixed $cached_values: The values returned by $this->getTempstore()->get($this->getMachineName());.
Return value
array An array keyed by: machine_name step
Overrides FormWizardBase::getPreviousParameters
File
- page_manager_ui/
src/ Wizard/ PageVariantAddWizard.php, line 167 - Contains \Drupal\page_manager_ui\Wizard\PageVariantAddWizard.
Class
Namespace
Drupal\page_manager_ui\WizardCode
public function getPreviousParameters($cached_values) {
$parameters = parent::getPreviousParameters($cached_values);
// Add the page to the url parameters.
$parameters['page'] = $cached_values['page']
->id();
return $parameters;
}