public function SimpleNodeConfirmImportForm::getCancelUrl in Simple Node Importer 8
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/ SimpleNodeConfirmImportForm.php, line 154
Class
- SimpleNodeConfirmImportForm
- Defines a confirmation form to confirm deletion of something by id.
Namespace
Drupal\simple_node_importer\FormCode
public function getCancelUrl() {
$bundleType = $this->node
->get('field_select_content_type')
->getValue()[0]['value'];
$nid = $this->node
->id();
$parameters = [
'option' => $bundleType,
'node' => $nid,
];
return new Url('simple_node_importer.node_mapping_form', $parameters);
}