Skip to content
  • twitter
  • Github
  • Facebook
Mahesh.PRO

Hello, I'm Mahesh, How can I help you?

Primary Menu
  • About
  • Javascript
  • Drupal
  • CSS
  • PHP

Theme API

  • Home
  • Blog
  • Theme API
Category: Drupal

Creating a simple custom template in Drupal 8 module

Posted On July 26, 2018August 10, 2018 By maheshcomment

Custom template files in Drupal 8 uses twig files. Apart from that defining a custom template is similar to Drupal 7. Custom templates are called and values are passed to custom template in the Controller classes in Drupal 8 module. Define the custom template in the modulename.module file using hook_theme as in Drupal 7 function Continue Reading

Categories
  • CSS
  • Drupal
  • Javascript
  • PHP
  • WordPress
Tags
brute force attack cakephp cdnjs class defnition Drupal 8 Drupal libraries Enlighter JS ES6 external javascript Form API highlightJs jetpack module development prismjs ProcessingJS rainbow Routing API shjs skeleton framework syntax highlighting Theme API URI parameter
Close
Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1 other subscriber

Copyright All right reserved Theme: Galway Lite by Themeinwp