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.
This website caters to the online travelers to find local attractions & rate it. It is a one stop solution website for finding latest in events, articles and deals for a local and national attractions. It also provides publishers to publish their magazines and articles for tech savvy travelers.
I'm in the process of migrating a site from drupal 7 to drupal 8 and I'm having a problem with where or how to implement functions I had in my template.php file.
For example in drupal 7 I have this function in my template.php file:
function some_function($var1, $var2){
print $var1 . $var2;
}
I call the function from a template file like this:
<?php some_function('Hello', 'World'); ?>
How and where would I implement something similar in Drupal 8.
Can anyone point me in the right direction to change the displayed text in an entity reference field after I have selected from the auto complete, I ve managed to change what is displayed in the auto complete, now I want to add that change to the actual entity reference field, looking for a tutorial or guidance to learn from
I need to add custom maintenance page twig file in Drupal 8 so that I can print some block region for example header image same as page.html.twig. I also used maintenance-page--offline.html.twig but that also does not work for me.