function Link::render_link

Same name in this branch
  1. 9.x drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Link.php \Drupal\node\Plugin\views\field\Link::render_link()
  2. 9.x drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php \Drupal\user\Plugin\views\field\Link::render_link()
  3. 9.x drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Link.php \Drupal\comment\Plugin\views\field\Link::render_link()
1 call to Link::render_link()
Link::render in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php
Render the field.
2 methods override Link::render_link()
LinkCancel::render_link in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkCancel.php
LinkEdit::render_link in drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/LinkEdit.php

File

drupal/core/modules/user/lib/Drupal/user/Plugin/views/field/Link.php, line 65
Definition of Drupal\user\Plugin\views\field\Link.

Class

Link
Field handler to present a link to the user.

Namespace

Drupal\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;
}