summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/NodeForm.php
diff options
context:
space:
mode:
authorAlex Pott2014-09-29 13:41:29 (GMT)
committerAlex Pott2014-09-29 13:41:29 (GMT)
commit4f49087b71360cf0fabe409e3bf8fd6fbf5465c1 (patch)
tree174ff4753338a0a4a50c6da94b298ffcaacaf241 /core/modules/node/src/NodeForm.php
parentf085b7b698d8d7f4999e91079876a2ef4f7d2650 (diff)
Issue #2277103 by tim.plunkett, pwolanin, Wim Leers, dawehner, hotpizzas: Switch Drupal::l() and LinkGenerator to expect a Url object.
Diffstat (limited to 'core/modules/node/src/NodeForm.php')
-rw-r--r--core/modules/node/src/NodeForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index a3c484f..a214282 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -408,7 +408,7 @@ class NodeForm extends ContentEntityForm {
$node = $this->entity;
$insert = $node->isNew();
$node->save();
- $node_link = $this->getLinkGenerator()->generateFromUrl(t('View'), $node->urlInfo());
+ $node_link = $node->link($this->t('View'));
$context = array('@type' => $node->getType(), '%title' => $node->label(), 'link' => $node_link);
$t_args = array('@type' => node_get_type_label($node), '%title' => $node->label());