Blog
Altering autocomplete results on entity references in drupal 9 & 10
The core autocomplete on entity references is not always satisfying. Sometimes authors need to know published status etc. This blogpost guides you through all the steps.
Blog
Render output of a node programmatically in drupal 9
There are use cases where you want the rendered output programmatically. This is different in drupal 9. This snippet shows you how to get it.
Blog
Creating twig views template suggestions for a custom entity
I had this views field in a view that renders custom entities. Unfortunately, the suggestions do not come out of the box. Here is how to add them.
Blog
Comparing two dates in drupal the correct way
Comparing dates is a common action when programming. But you could have side effects mixing UTC and timezones... This snippet shows you how to do it the correct way.
Blog
Render a view with contextual filters programmatically in Drupal 9
A snippet of how to render a view inside a controller.
Blog
How to use HTML markup in hook_mail in drupal 9
I found a problem while sending confirmation e-mails. My HTML was escaped in translation strings. This fixed it.
Pagination
- Previous page
- Page 15
- Next page