public function PageVariantConfigMapper::getBaseRouteParameters in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/ConfigTranslation/PageVariantConfigMapper.php \Drupal\page_manager_ui\ConfigTranslation\PageVariantConfigMapper::getBaseRouteParameters()
Returns the route parameters for the base route the mapper is attached to.
Return value
array
Overrides ConfigEntityMapper::getBaseRouteParameters
File
- page_manager_ui/
src/ ConfigTranslation/ PageVariantConfigMapper.php, line 34 - Contains \Drupal\page_manager_ui\ConfigTranslation\PageVariantConfigMapper.
Class
- PageVariantConfigMapper
- Configuration mapper for page variants.
Namespace
Drupal\page_manager_ui\ConfigTranslationCode
public function getBaseRouteParameters() {
$parameters = parent::getBaseRouteParameters();
$parameters['page'] = $this->entity
->get('page');
$parameters['machine_name'] = $parameters['page'];
$parameters['step'] = 'page_variant__' . $parameters['page_variant'] . '__general';
return $parameters;
}