Custom Twig Template for Custom Content Type In my custom modules I am creating a custom content type. I also need to apply a twig template for this custom content type, but I can't seem to get it to actually apply.   

in myModule.module file I have:

function myModule_theme($existing, $type, $theme, $path) {


return [
    'faculty_bio_node' =&gt; [
      'variables' =&gt; [],
    ]
  ];
}


and I have a custom twig template named :   faculty_bio-node.html.twig

The content types machine name is faculty_bio
If you want to load the template from the module folder you are in the right hook, but you need to use the correct base hook. This means you have to start the template name with the base hook and a double underscore node__ and declare the base hook in theme_hook(), see Store template in module.

hook_theme():

function myModule_theme($existing, $type, $theme, $path) {


return [
    'node__faculty_bio' =&gt; [
      'base hook' =&gt; 'node',
    ]
  ];
}


The Twig template path and name would then be mymodule/templates/node--faculty-bio.html.twig.