With code like $node = \Drupal::routeMatch()->getParameter('node'), getParameter() returns a string (the nid) on a revisions page but a full node object on a normal node page. Speaking with some folks in IRC, I was asked to report this as broken as getParameter should return the node object in both cases.

Comments

scotself created an issue. See original summary.

jasonawant’s picture

mpp’s picture

Related issues: