Snippets

You are here

Add a custom template for Drupal 8 content types.

Iris.i

Here's a quick snippet for adding a custom template to a drupal 8 site based on the machine name of the site content types. Add this to your themename.theme file.

  1. /**
  2.  * Implements hook_theme_suggestions_HOOK_alter().
  3.  */

Pages