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