Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am trying to set the Front Page of my Drupal website via a custom module I created. I think it should be noted that I also have a theme applied to my website.
I have looked around and it appears the solution has something to do with page--front.html.twig. I have located this file inside themeFolder/templates but I dont know what to do with it.
I tried literally creating this file inside myModule/templates/page--front.html.twig, with no success.
I am trying to add a template I have defined in my custom module to a region on my theme programatically.
I see there are regions defined in my theme .info.yml file, but I havent the slightest idea of how I would go about adding content to these specific regions programatically? I know I can create a custom block and place it in a region via the UI, but I am trying to add content to these regions via code.
I updated sites today via composer, which updated them to 8.6.8. After completing the update, I noticed that the Admin screens looked "different". At first, I just chalked it up to a change in the update, however returning to work on a site, I got the "The website encountered an unexpected error. Please try again later." I checked my log and found the following: