Skip to main content
How to upgrade from Drupal 8 to 9 with composer [blog post + screen cast]
This blogposts gives you a summary on how to upgrade to drupal 9 and fix all composer issues.
How to programmatically update an entity reference field in drupal 8
Drupal 8 is becoming more and more API-first based. This means a lot of imports and exports of data will be done. A thing you might face here, is that the updating of entity reference fields is a bit tricky. Here I'll show you how it is done.
Create paragraphs and attach to node programmatically in drupal 8
Paragraphs give great power to drupal 8. This code will show you how you can add them programmatically, for example when importing stuff.
Disable block caching in drupal 8
When creating custom blocks, sometimes you need to make sure the block is never cached f.e. when including dynamic links.
must be an instance of Symfony\Component\HttpKernel\Event\ResponseEvent, instance of Symfony\Component\HttpKernel\Event\RequestEvent given
Fix Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0
$entity = \Drupal::entityTypeManager()->getTranslationFromContext($entity);
A boilerplate Drupal Entity file
I realized there are not many resources to find a boilerplate custom entity. Here I share a code snippet containing one.
Call to deprecated function format_date()
How to fix "Mismatched entity and/or field definition" in Drupal.
This update script will help you in fixing Mismatched entity and/or field definitions errors in Drupal
Subscribe to Drupal