You are here

public function ForwardLink::render in Forward 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/field/ForwardLink.php \Drupal\forward\Plugin\views\field\ForwardLink::render()
  2. 8.2 src/Plugin/views/field/ForwardLink.php \Drupal\forward\Plugin\views\field\ForwardLink::render()

inheritdoc}

Overrides FieldPluginBase::render

File

src/Plugin/views/field/ForwardLink.php, line 105

Class

ForwardLink
Field handler to flag the node type.

Namespace

Drupal\forward\Plugin\views\field

Code

public function render(ResultRow $values) {

  // Views fields do not have a view mode, so skip that in the access check
  $view_mode = FALSE;
  if ($this->accessChecker
    ->isAllowed($this->settings, $values->_entity, $view_mode)) {
    return $this->linkBuilder
      ->buildForwardEntityLink($values->_entity, $this->settings);
  }
}