You are here

function Link::render_link in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/node/Plugin/views/field/Link.php \Views\node\Plugin\views\field\Link::render_link()
  2. 8.3 lib/Views/user/Plugin/views/field/Link.php \Views\user\Plugin\views\field\Link::render_link()
  3. 8.3 lib/Views/comment/Plugin/views/field/Link.php \Views\comment\Plugin\views\field\Link::render_link()
1 call to Link::render_link()
Link::render in lib/Views/user/Plugin/views/field/Link.php
Render the field.
3 methods override Link::render_link()
ContactLink::render_link in lib/Views/contact/Plugin/views/field/ContactLink.php
LinkCancel::render_link in lib/Views/user/Plugin/views/field/LinkCancel.php
LinkEdit::render_link in lib/Views/user/Plugin/views/field/LinkEdit.php

File

lib/Views/user/Plugin/views/field/Link.php, line 65
Definition of Views\user\Plugin\views\field\Link.

Class

Link
Field handler to present a link to the user.

Namespace

Views\user\Plugin\views\field

Code

function render_link($data, $values) {
  $text = !empty($this->options['text']) ? $this->options['text'] : t('view');
  $this->options['alter']['make_link'] = TRUE;
  $this->options['alter']['path'] = "user/" . $data;
  return $text;
}