The right way to check for empty content in Twig
Have you ever used {% if content|render|trim is not empty %}
in twig to validate content is not empty? If so, you might end up with some surprises related to the use of the render
method.
Have you ever used {% if content|render|trim is not empty %}
in twig to validate content is not empty? If so, you might end up with some surprises related to the use of the render
method.
Have you ever had a project where you've used a core or contributed module but been asked to make slight changes to base fields? Find out how to use a little-known feature of core to make these changes with only configuration.
This post introduces a completely new way of implementing Drupal hooks. You can finally get rid of your .module
files, eliminating many calls to \Drupal
with dependency injection in hooks.
In this post, I explain why we chose to fork Elasticsearch Connector and create a new Search API OpenSearch module.
Front-end technology stacks tend to move quickly. At PreviousNext, we are constantly evolving the tech stack to take advantage of best practices.
Check out my detailed configuration for running and debugging tests via PHPStorm's PHPUnit integration with DDev and xdebug.
After a great turnout in August, the PreviousNext team is co-sponsoring and coordinating the DrupalSouth 2021 Sprint Day (Online) again on Friday 12 November 2021, and there are a few things you can do now to hit the ground running.
Layout plugins in Drupal are typically declared via a YML file, with the regions nominated ahead of time. But what happens if you need your regions to be dynamic, such as an arbitrary number of tabs in a tabset?
The media and media library modules have improved Drupal's file handling capabilities considerably, but clients commonly request the ability to remove files from disk when removing the associated media entity. This is where the Media file delete module can help
Securing filter formats is one of the most important tasks when setting up a new site. The Filter Format Audit module makes this task easy.