You are here

protected function RevisionLinkRevert::getDefaultLabel in Drupal 8

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

Returns the default label for this link.

Return value

string The default link label.

Overrides RevisionLink::getDefaultLabel

File

core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php, line 29

Class

RevisionLinkRevert
Field handler to present a link to revert a node to a revision.

Namespace

Drupal\node\Plugin\views\field

Code

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