I am trying to add a class name to a template field. The new class name will be constructed from the content name + other text.

Trying to get the content name from element['#object']['values']['info']['x-default']. Always comes up NULL. Using {{kint()}} to display the values on the screen.

I do not know how to access protected fields with twig, and my searches on drupal.org and google.com are not finding anything.