protected function RevisionLinkRevert::getDefaultLabel in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php \Drupal\node\Plugin\views\field\RevisionLinkRevert::getDefaultLabel()
- 9 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\fieldCode
protected function getDefaultLabel() {
return $this
->t('Revert');
}