0
Q:

drupal 8 check if current page is node

$node = \Drupal::routeMatch()->getParameter('node');
if ($node instanceof \Drupal\node\NodeInterface) {
  // It's a node!
}
0

New to Communities?

Join the community