You are here

public function ConfigPagesClearConfirmationForm::getCancelUrl in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/Form/ConfigPagesClearConfirmationForm.php \Drupal\config_pages\Form\ConfigPagesClearConfirmationForm::getCancelUrl()
  2. 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\Form

Code

public function getCancelUrl() {
  $entity_id = $this->id;
  $entity = ConfigPages::load($entity_id);
  return $entity
    ->urlInfo();
}