Getting values on twig node template I have installed ECK module in my website. Using it I have created a "report eck" entity in which I have different bundles like section, notes, etc., each containing different fields.
I have my content type "Report" in which I have referred "report eck" entity using entity reference field.
Now, in my nice template, I need to get various values including the bundle type, in which I am facing lots of trouble. My bundle type is coming up as following when I am doing kint() on my reference field, but I am not able to get this bundle type and many other values, please guide.


Also, it seems to be a protected values, so I navigated to "Available Methods" tabs and found method 'getEntityKey()' which seems to be useful, but how can I use it in twig 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 }}