protected function MenuLinkConfigMapper::processRoute in Config menu link 8
Allows to process all config translation routes.
Parameters
\Symfony\Component\Routing\Route $route: The route object to process.
Overrides ConfigEntityMapper::processRoute
File
- src/
MenuLinkConfigMapper.php, line 48 - Contains \Drupal\menu_link_config\MenuLinkConfigMapper.
Class
- MenuLinkConfigMapper
- Provides configuration mapper for configuration menu links.
Namespace
Drupal\menu_link_configCode
protected function processRoute(Route $route) {
// Add entity upcasting information.
$parameters = $route
->getOption('parameters') ?: array();
$parameters += array(
'menu_link_plugin' => array(
'type' => 'menu_link_plugin',
),
);
$route
->setOption('parameters', $parameters);
}