/**
* Gets the form's redirect URL from 'destination' provide in the request.
*
* @return \Drupal\Core\Url|null
* The redirect URL or NULL if dialog should just be closed.
*/
protected function getRedirectUrl() { // \Drupal\Core\Routing\RedirectDestination::get() cannot be used directly
// because it will use <current> if 'destination' is not in the query
// string.
if ($this->
getRequest()->query->
has('destination'
) &&
$destination =
$this->
getRedirectDestination()->
get()) { return Url::
fromUserInput('/' .
$destination);
} }}