Inline Twig template is a quick and easy way to use Twig syntax in render arrays. I usually use this render element type to add JS scripts to the <body> section of Drupal pages, but you can also use it in controller responses, custom blocks and so on.
Adding automated tests to small or create-and-forget projects probably doesn't make sense. You will spend additional time writing those tests, and this will only increase the project's cost. And you will get almost nothing in return. But, if you are working on a project that will be maintained in the future and new features will be added on a regular basis, then you most certainly need to add automated tests.
The configuration API in Drupal 8 provides a central place for storing configuration data. This is the place where modules and themes can store their data. Let's see how you can delete this data.
This site is powered by Drupal 8. I'm using Nginx as a web server and Let's Encrypt to add HTTPS encryption to my site. In this post, I will show you how my Nginx config file looks like.
Creating a menu link programmatically in Drupal 8 is easy. You have to provide four values, link title and Uri, menu name for which you want to create a menu link, and optionally you can provide a link weight.
Speaking at Drupal Camp Pannonia 2018 was an amazing experience. Sharing knowledge and ideas with the fellow Drupalers is always great, but this Camp that was held in Palić, Serbia was really something special.
Did you know that Drupal is available in 100 languages? Did you know that Drupal is 17 years old? Did you know that 56% of government websites are using Drupal? Find out more information about Drupal in this amazing infographic.
As the year draws to an end and another one is in the horizon, I reflect on how great it was.
In this blog post, we will create a simple decoupled website. To find out more about decoupled websites please visit the following link The future of decoupled Drupal. The back-end will be a Drupal 8 instance, and the front-end will be created in React JS.
dix is a simple console application that will make your life easier if you are working with MySQL databases. Let's say that you are working with some PHP framework or CMS and that you want to test a new module/plugin/add-on, or maybe you just want to upgrade to the latest version. The very first thing you should do is make a backup of your database. Doing this will save you a lot of headaches if something goes wrong.