Commit 7365cd41 authored by alexpott's avatar alexpott

Issue #2513332 by stevector: NodeViewController::view() does not pass along...

Issue #2513332 by stevector: NodeViewController::view() does not pass along its arguments when calling parent method
parent 6475b826
......@@ -20,7 +20,7 @@ class NodeViewController extends EntityViewController {
* {@inheritdoc}
*/
public function view(EntityInterface $node, $view_mode = 'full', $langcode = NULL) {
$build = parent::view($node);
$build = parent::view($node, $view_mode, $langcode);
foreach ($node->uriRelationships() as $rel) {
// Set the node path as the canonical URL to prevent duplicate content.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment