How to get current language programmatically in Drupal 8 // Get current language code $language = \Drupal::languageManager()->get...
While there are many ways to debug your errors, sometimes just seeing the full errors in your screen works best. Enable error reporting ...
Ok, we have all seen it (and more than likely been guilty of it at one point or ...
This code how to pass the variable using Themename_preprocess_page and themename_preprocess_html <?php /* This Function in t...
Hello Developer in this example You learn how to implement in your website scroll to top button in your website three simple step you...
Que 3. Write a function which will take $arr as an argument and output the all the keys as output $array = array( '1' ...
After lot of research, finally got the way to render blocks in twig files. Basically there are two type of renders. When there is...