You are here

protected function RevisionLink::getDefaultLabel in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/field/RevisionLink.php \Drupal\node\Plugin\views\field\RevisionLink::getDefaultLabel()
  2. 9 core/modules/node/src/Plugin/views/field/RevisionLink.php \Drupal\node\Plugin\views\field\RevisionLink::getDefaultLabel()

Returns the default label for this link.

Return value

string The default link label.

Overrides LinkBase::getDefaultLabel

2 methods override RevisionLink::getDefaultLabel()
RevisionLinkDelete::getDefaultLabel in core/modules/node/src/Plugin/views/field/RevisionLinkDelete.php
Returns the default label for this link.
RevisionLinkRevert::getDefaultLabel in core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php
Returns the default label for this link.

File

core/modules/node/src/Plugin/views/field/RevisionLink.php, line 47

Class

RevisionLink
Field handler to present a link to a node revision.

Namespace

Drupal\node\Plugin\views\field

Code

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