bundle

How to get bundle label from entity?

$bundle_label = \Drupal::entityTypeManager()
  ->getStorage('node_type')
  ->load($node->bundle())
  ->label();

 

 

$bundle_label = $node->type->entity->label();