function ConfigEditor::buildCancelLinkUrl
Same name in other branches
- 4.x src/Form/ConfigEditor.php \Drupal\devel\Form\ConfigEditor::buildCancelLinkUrl()
Builds the cancel link url for the form.
Return value
\Drupal\Core\Url Cancel url
1 call to ConfigEditor::buildCancelLinkUrl()
- ConfigEditor::buildForm in src/
Form/ ConfigEditor.php - Form constructor.
File
-
src/
Form/ ConfigEditor.php, line 175
Class
- ConfigEditor
- Edit config variable form.
Namespace
Drupal\devel\FormCode
private function buildCancelLinkUrl() : Url {
$query = $this->requestStack
->getCurrentRequest()->query;
if ($query->has('destination')) {
$options = UrlHelper::parse($query->get('destination'));
return Url::fromUserInput('/' . ltrim($options['path'], '/'), $options);
}
return Url::fromRoute('devel.configs_list');
}