Related Content
Drupal 11: Batch Processing Using Drush
This is the second part of a series of articles looking at the Batch API in Drupal. The Batch API is a system in Drupal that allows data to be processed in small chunks in order to prevent timeout errors or memory problems.
Drupal 11: An Introduction To Batch Processing With The Batch API
The Batch API is a powerful feature in Drupal that allows complex or time consuming tasks to be split into smaller parts.
Drupal 10: Testing Migration Process Plugins
Drupal's migration system allows the use of a number of different plugins to perform source, processing, and destination functions.
LocalGov Drupal Camp 2024
April 23rd, 2024 saw the first LocalGov Drupal Camp, held at the Birmingham Council buildings in Birmingham city center.
Drupal 10: Adding Extra User Account Protection
One of Drupal's strengths is its ability to create communities of users who contribute towards the content of the site. Whether you have an open forum, where users can create their own accounts, or a closed magazine with just a few editors your need to take the security of your users seriously.
Drupal 10: Opening An Ajax Dialog On Page Load
Drupal has a quick and convenient way of creating ajax dialogs that gives users the ability to embed links in content that open up dialog boxes when clicked. This is a useful way of presenting a bit of content to a user without them navigating away from the page.
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 giHlZp8M8D on Fri, 12/11/2020 - 12:15
PermalinkAdd new comment