Skip to main content
Tweeted twitter.com/StackDrupal/status/1049268427741962240
edited tags; edited title
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

Is there a way in drupal 8 to tell if the current page is a node?

Source Link
BrandenB171
  • 1.1k
  • 4
  • 15
  • 27

Is there a way in drupal 8 to tell if the current page is a node?

Without checking the URL I would like to know if the current page is a node page. We plan on using URL aliases so we would like to not rely on the '/node/*' structure.

Is there some page variable or something that will indicate a node page?