diff --git a/core/modules/shortcut/src/Entity/Shortcut.php b/core/modules/shortcut/src/Entity/Shortcut.php index 97f536d..9734109 100644 --- a/core/modules/shortcut/src/Entity/Shortcut.php +++ b/core/modules/shortcut/src/Entity/Shortcut.php @@ -108,17 +108,14 @@ public function setRouteName($route_name) { * {@inheritdoc} */ public function getRouteParams() { - $value = $this->get('route_parameters')->first()->getValue(); - // @todo Investigate why there is a stray 'value' key. - unset($value['value']); - return $value; + return $this->get('route_parameters')->first()->getValue(); } /** * {@inheritdoc} */ public function setRouteParams($route_parameters) { - $this->set('route_parameters', array($route_parameters)); + $this->set('route_parameters', $route_parameters); return $this; }