Node load
$nid = \Drupal::routeMatch()->getRawParameter('node'); $node = \Drupal::routeMatch()->getParameter('node'); $node->bundle();