public function LinkBase::render in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::render()
- 9 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::render()
1 call to LinkBase::render()
- EntityLink::render in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLink.php
1 method overrides LinkBase::render()
- EntityLink::render in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLink.php
File
- core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php, line 165
Class
- LinkBase
- Field handler to present a link to an entity.
Namespace
Drupal\views\Plugin\views\fieldCode
public function render(ResultRow $row) {
$access = $this
->checkUrlAccess($row);
$build = [
'#markup' => $access
->isAllowed() ? $this
->renderLink($row) : '',
];
BubbleableMetadata::createFromObject($access)
->applyTo($build);
return $build;
}