You are here

protected function RevisionLinkDelete::getDefaultLabel in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/node/src/Plugin/views/field/RevisionLinkDelete.php \Drupal\node\Plugin\views\field\RevisionLinkDelete::getDefaultLabel()
  2. 10 core/modules/node/src/Plugin/views/field/RevisionLinkDelete.php \Drupal\node\Plugin\views\field\RevisionLinkDelete::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/RevisionLinkDelete.php, line 29

Class

RevisionLinkDelete
Field handler to present link to delete a node revision.

Namespace

Drupal\node\Plugin\views\field

Code

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