/** * {@inheritdoc} */ public function toUrl($rel = 'canonical', array $options = []) { $url = parent::toUrl($rel, $options); // The 'entity_queue' parameter is needed by the subqueue routes, so we need // to add it manually. $url->setRouteParameter('entity_queue', $this->bundle()); return $url; }