function EntityLinkEdit::renderLink

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/field/EntityLinkEdit.php \Drupal\views\Plugin\views\field\EntityLinkEdit::renderLink()
  2. 10 core/modules/views/src/Plugin/views/field/EntityLinkEdit.php \Drupal\views\Plugin\views\field\EntityLinkEdit::renderLink()
  3. 11.x core/modules/views/src/Plugin/views/field/EntityLinkEdit.php \Drupal\views\Plugin\views\field\EntityLinkEdit::renderLink()

Overrides EntityLink::renderLink

File

core/modules/views/src/Plugin/views/field/EntityLinkEdit.php, line 26

Class

EntityLinkEdit
Field handler to present a link to edit an entity.

Namespace

Drupal\views\Plugin\views\field

Code

protected function renderLink(ResultRow $row) {
    $this->options['alter']['query'] = $this->getDestinationArray();
    return parent::renderLink($row);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.