Custom twig template into hook_mail()
$body_content = array( '#theme' => 'mail_body_content', '#node' => $node, );
I would like to access to node Entity and display value into the twig
myfield_name: {{ node.get('field_myfield_name').value }}
Render code
$renderedContent = Drupal::service('renderer')->renderPlain($body_content);
Only myfield_name: is display. How to get / pass the variable to twig ?