You are here

public function AuthmapDeleteLink::render in SAML Authentication 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/field/AuthmapDeleteLink.php \Drupal\samlauth\Plugin\views\field\AuthmapDeleteLink::render()

Renders the field.

Parameters

\Drupal\views\ResultRow $values: The values retrieved from a single row of a view's query result.

Return value

string|\Drupal\Component\Render\MarkupInterface The rendered output. If the output is safe it will be wrapped in an object that implements MarkupInterface. If it is empty or unsafe it will be a string.

Overrides LinkBase::render

File

src/Plugin/views/field/AuthmapDeleteLink.php, line 42

Class

AuthmapDeleteLink
Field handler to present a link to delete an authmap entry.

Namespace

Drupal\samlauth\Plugin\views\field

Code

public function render(ResultRow $row) {

  // This whole link is a quick hack because this functionality should move
  // into the externalauth module. We'll do the access checks in the form.
  return [
    '#markup' => $this
      ->renderLink($row),
  ];
}