public function ConfigPagesClearConfirmationForm::getCancelUrl in Config Pages 8
Same name and namespace in other branches
- 8.3 src/Form/ConfigPagesClearConfirmationForm.php \Drupal\config_pages\Form\ConfigPagesClearConfirmationForm::getCancelUrl()
- 8.2 src/Form/ConfigPagesClearConfirmationForm.php \Drupal\config_pages\Form\ConfigPagesClearConfirmationForm::getCancelUrl()
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
File
- src/
Form/ ConfigPagesClearConfirmationForm.php, line 34
Class
- ConfigPagesClearConfirmationForm
- Action on clear ConfigPage submit form.
Namespace
Drupal\config_pages\FormCode
public function getCancelUrl() {
$entity_id = $this->id;
$entity = ConfigPages::load($entity_id);
return $entity
->urlInfo();
}