bratsun
8/24/2016 - 2:55 PM

Node load

Node load

$nid = \Drupal::routeMatch()->getRawParameter('node');

$node = \Drupal::routeMatch()->getParameter('node');

$node->bundle();