/** * {@inheritdoc} */ public function getOptions() { $options = parent::getOptions(); // Append the current path as destination to the query string. $options['query']['destination'] = Url::fromRoute('<current>')->toString(); return $options; }
/** * {@inheritdoc} */ public function getOptions() { $options = parent::getOptions(); $options['query']['path'] = '/' . Url::fromRoute('<current>')->getInternalPath(); return $options; }