Getting values on twig node template
These are protected. You need to use any available getters to access them. Example, for nodes, the method is getType(). $node-&gt;getType(). Most generic entities should have a bundle() method that returns type.

https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21Entity.php/function/Entity%3A%3Abundle/8.4.x

Examples: 

$bundle = $myEntity-&gt;bundle();

$variables['bundle'] = $bundle;

Twig: {{ bundle }}