protected function EntityLinkDelete::renderLink in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/field/EntityLinkDelete.php \Drupal\views\Plugin\views\field\EntityLinkDelete::renderLink()
- 9 core/modules/views/src/Plugin/views/field/EntityLinkDelete.php \Drupal\views\Plugin\views\field\EntityLinkDelete::renderLink()
Prepares the link to view an entity.
Parameters
\Drupal\views\ResultRow $row: A view result row.
Return value
string Returns a string for the link text.
Overrides EntityLink::renderLink
File
- core/
modules/ views/ src/ Plugin/ views/ field/ EntityLinkDelete.php, line 26
Class
- EntityLinkDelete
- Field handler to present a link to delete an entity.
Namespace
Drupal\views\Plugin\views\fieldCode
protected function renderLink(ResultRow $row) {
$this->options['alter']['query'] = $this
->getDestinationArray();
return parent::renderLink($row);
}