Related Content
DrupalCamp Scotland 2024
DrupalCamp Scotland returned after a small hiatus of 5 years on the 25th October 2024 and saw nearly 50 people attend the university of Edinburgh Paterson's Land building for a day of talks and sessions.
Drupal 11: Batch Operations Built Into Drupal
This is the sixth article in a series of articles about 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: Adding Operations To Running Batches
This is the fifth article in a series of articles about 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: Using The Batch API To Process CSV Files
This is the fourth article in a series of articles about 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: Using The Finished State In Batch Processing
This is the third article in a series of articles about 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: 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.
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