You are here

protected function EntityLinkRevisionRevert::renderLink in Entity API 8

Prepares the link to view a entity.

Parameters

\Drupal\views\ResultRow $row: A view result row.

Return value

string Returns a string for the link text.

Overrides EntityLink::renderLink

File

src/Plugin/views/field/EntityLinkRevisionRevert.php, line 27

Class

EntityLinkRevisionRevert
Field handler to present a link to revert an entity to a revision.

Namespace

Drupal\entity\Plugin\views\field

Code

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