![]() * Implements hook_theme_suggestions_HOOK_alter() for form templates. Problem/Motivation Hello project maintainers, This is an automated issue to help make this module compatible with Drupal 9. so follow the below steps to archive thisġ) First you need to go to URL and here add new "Add custom block type"Ģ) Add your required fields and save all fields, let say we create the block type "Banner Block"ģ) Now go the manage fields and add your fields, like I have added the image field seeĤ) Now you need to alter the hook and tell drupal that you want to use the block twig template based on block type, so for that you need to add the code into yourthemename.theme file, just add the following code /** but question is how if we need to style the block html in our own way without affecting the any other block type, so our style will only and only apply to block template. Then register it in my_,today we will see how we can create the block type twig template for any specific block type in drupal 8 or drupal 9.ĭrupal 8/9 provided a block type option which was not in drupal 7, by the benefit of this you can create you with any specific set of fields and render them according to your wish. The email can be customized by overriding the Twig template in your theme just as you would any other template (see Drupal's Twig Template docs).Ĭopy to my_module/templates/my-module-order-receipt. The default can be found in the commerce_order module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |