getParameter('theme')) { $options['query']['theme'] = $theme; } // Adds a destination on custom block listing. if ($route_match->getRouteName() == 'entity.block_content.collection') { $options['query']['destination'] = $this->url(''); } return $options; } }