Related Content
Drupal 10: Running Drupal Tests On GitHub Using Workflows
There are a number of different tools that allow you to validate and test a Drupal site. Inspecting your custom code allows you to adhere to coding standards and ensure that you stamp our common coding problems. Adding tests allows you to make certain that the functionality of your Drupal site works correctly.
DrupalCon Lille 2023
This year's DrupalCon Europe was hosted between the 17th and 20th of October, in the French city of Lille. My DrupalCon adventure began early on Monday morning when Chris Maiden picked me up to drive to France via the EuroStar train. We arrived in Lille a little after 4pm, which was really good going for a nearly 400+ mile trip.
Drupal 10: Adding Third Party Settings To Drupal Configuration Entities
Drupal's modular system allows for all kinds of additions to be added to your site through plugins, entities and configuration.
Drupal 10: Adding Custom Permissions To Groups
The Group module in Drupal is a powerful way of collecting together users and content under a single entity.
Drupal 10: Creating A Notification System Using The Message And ECA Modules
Drupal is a great platform to create communities of users where you can allow users to create their own content and interact with each other. One way of keeping users engaged on the site is by letting them know when other users are interacting with content they have created.
Drupal 10: Using Default Content Deploy To Create Testing Content
Performing behavioural testing on a Drupal project allows you to make sure that all of your features work as they should do. This is especially important when you update code as this can introduce bugs that are otherwise time consuming or difficult to spot.
Comments
Submitted by Sarah Jay on Tue, 08/30/2016 - 20:46
PermalinkShort, cool and informative. Thank you!
Submitted by Josip Rajkovic on Wed, 10/17/2018 - 15:04
PermalinkSmall remark,
To get the currently selected language for content :
Submitted by tty11 on Thu, 02/07/2019 - 09:17
PermalinkThank you Philip. I did not have the interface translation enabled so your snipped was always returning the default language. The snipped posted by "tty11" worked. Thanks tty11 :), however I will make a small change to it. Drupal couldn't find "LanguageInterface" in my theme's preprocess function, I had to provide namespace too as follows
Submitted by Ejay Rus on Fri, 12/11/2020 - 09:57
PermalinkThanks Ejay. I wrote this post during my first few weeks of Drupal 8 development. I've since learned a lot about how the language manager works so there are probably a few contextual issues with my original snippet :)
Submitted by philipnorton42 on Fri, 12/11/2020 - 12:15
PermalinkAdd new comment