Commit 08fc6f39 authored by catch's avatar catch
Browse files

Issue #1859884 by dawehner, tstoeckler: Convert user link fields to use entities.

parent bc801aab
......@@ -26,7 +26,7 @@ class LinkCancel extends Link {
* Overrides \Drupal\user\Plugin\views\field\Link::render_link().
*/
public function render_link(EntityInterface $entity, \stdClass $values) {
if ($entity && user_cancel_access($entity)) {
if ($entity && user_cancel_access($entity)) {
$this->options['alter']['make_link'] = TRUE;
$text = !empty($this->options['text']) ? $this->options['text'] : t('cancel');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment