Skip to main content
Error: Non-static method Drupal\Core\File\FileSystemInterface::delete() cannot be called statically
Deleting all terms of a taxonomy in bulk with drush
This drush snippet helps you to remove tags in bulk.
The X entity type does not exist In EntityTypeManager.php line 150
Fixing CORS issues with decoupled drupal
A common issue is CORS errors when testing on a local environment on decoupled installations. This will guide you into fixing it.
Get site name programmatically in drupal 8 & 9
This configuration setting is easy to get with the following snippet.
Argument 2 passed to Symfony\Component\HttpKernel\Event\FilterControllerEvent::__construct() must be callable
Render a button in drupal 8 & 9 with a render array
Render arrays are great for styling elements to keep consistency across future updates. Today: buttons.
Check if a form is an entityForm
EntityForms are gaining importance in drupal 8 and 9. This is how to make sure you are in one.
Change label and description of a revision log field in drupal 8 and 9
Revisions are a great thing for tracking changes between entities. This snippets allows you to name them different in your entity forms.
Controller\ ::__construct(), 0 passed in /var/www/html/web/core/lib/Drupal/Core/Controller/ControllerBase.php on line 109
Subscribe to Drupal