Overrides \Drupal\user\Plugin\views\field\Link::render_link().
Overrides Link::render_link
public function render_link(EntityInterface $entity, \stdClass $values) {
if ($entity && $entity
->access('delete')) {
$this->options['alter']['make_link'] = TRUE;
$text = !empty($this->options['text']) ? $this->options['text'] : t('Cancel account');
$uri = $entity
->uri();
$this->options['alter']['path'] = $uri['path'] . '/cancel';
$this->options['alter']['query'] = drupal_get_destination();
return $text;
}
}