EntityLinkDelete.php in Drupal 8
File
core/modules/views/src/Plugin/views/field/EntityLinkDelete.php
View source
<?php
namespace Drupal\views\Plugin\views\field;
use Drupal\views\ResultRow;
class EntityLinkDelete extends EntityLink {
protected function getEntityLinkTemplate() {
return 'delete-form';
}
protected function renderLink(ResultRow $row) {
$this->options['alter']['query'] = $this
->getDestinationArray();
return parent::renderLink($row);
}
protected function getDefaultLabel() {
return $this
->t('delete');
}
}