function RevisionLinkRevert::getUrlInfo
Same name in other branches
- 9 core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php \Drupal\node\Plugin\views\field\RevisionLinkRevert::getUrlInfo()
- 10 core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php \Drupal\node\Plugin\views\field\RevisionLinkRevert::getUrlInfo()
- 11.x core/modules/node/src/Plugin/views/field/RevisionLinkRevert.php \Drupal\node\Plugin\views\field\RevisionLinkRevert::getUrlInfo()
Overrides RevisionLink::getUrlInfo
File
-
core/
modules/ node/ src/ Plugin/ views/ field/ RevisionLinkRevert.php, line 20
Class
- RevisionLinkRevert
- Field handler to present a link to revert a node to a revision.
Namespace
Drupal\node\Plugin\views\fieldCode
protected function getUrlInfo(ResultRow $row) {
/** @var \Drupal\node\NodeInterface $node */
$node = $this->getEntity($row);
return Url::fromRoute('node.revision_revert_confirm', [
'node' => $node->id(),
'node_revision' => $node->getRevisionId(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.