function EntityLink::getDefaultLabel

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/field/EntityLink.php \Drupal\views\Plugin\views\field\EntityLink::getDefaultLabel()
  2. 8.9.x core/modules/views/src/Plugin/views/field/EntityLink.php \Drupal\views\Plugin\views\field\EntityLink::getDefaultLabel()
  3. 11.x core/modules/views/src/Plugin/views/field/EntityLink.php \Drupal\views\Plugin\views\field\EntityLink::getDefaultLabel()

Overrides LinkBase::getDefaultLabel

3 methods override EntityLink::getDefaultLabel()
EntityLinkDelete::getDefaultLabel in core/modules/views/src/Plugin/views/field/EntityLinkDelete.php
Returns the default label for this link.
EntityLinkEdit::getDefaultLabel in core/modules/views/src/Plugin/views/field/EntityLinkEdit.php
Returns the default label for this link.
TranslationLink::getDefaultLabel in core/modules/content_translation/src/Plugin/views/field/TranslationLink.php
Returns the default label for this link.

File

core/modules/views/src/Plugin/views/field/EntityLink.php, line 63

Class

EntityLink
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

protected function getDefaultLabel() {
    return $this->t('view');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.