To get node object using node parameters,$node = \Drupal::routeMatch()->getParameter('node'); if (!$node) { return;}// Here field_tag is the machine name of the referenced taxonomy term$term_name = $node->field_tag->entity->getName(); Log in to post comments Category Taxonomy Node