function LinkBase::getDefaultLabel
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::getDefaultLabel()
- 10 core/modules/views/src/Plugin/views/field/LinkBase.php \Drupal\views\Plugin\views\field\LinkBase::getDefaultLabel()
Returns the default label for this link.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The default link label.
1 method overrides LinkBase::getDefaultLabel()
- EntityLink::getDefaultLabel in core/
modules/ views/ src/ Plugin/ views/ field/ EntityLink.php - Returns the default label for this link.
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ LinkBase.php, line 233
Class
- LinkBase
- Field handler to present a link to an entity.
Namespace
Drupal\views\Plugin\views\fieldCode
protected function getDefaultLabel() {
return $this->t('link');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.