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.
Welcome to our growing knowledge base.
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.
Internet Explorer retires next month (June 15th). It’s well and truly time for you to stop supporting it on your website for any current and future development (you have already, I hope).
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.
As we enter our 14th year of operations in 2022, PreviousNext is taking a bold step into employee ownership, utilising a groundbreaking approach that’s only recently become possible in Australia.
In this post, I explain why we chose to fork Elasticsearch Connector and create a new Search API OpenSearch module.
The Drupal open-source project relies on sustained contributions from individuals and organisations to keep it well-maintained, developing, growing and relevant in a competitive landscape.
Front-end technology stacks tend to move quickly. At PreviousNext, we are constantly evolving the tech stack to take advantage of best practices.
Take a peek inside to see what it's like to work at PreviousNext! We're opening up our handbook so you can see how we work together and the benefits we all enjoy.
Check out my detailed configuration for running and debugging tests via PHPStorm's PHPUnit integration with DDev and xdebug.