Blog
How to add github repository to composer.json to be used as library in drupal 8 [SOLVED]
A common issue you would have when using javascript plug-ins is that you do not want them to be added to your version control. You would want to add it to the main composer.json file that has to donwload the library for you. Here is how the solution works.
Blog
Blog
Fixing the system.site uuid on config import problem in drupal 8
One thing that bothers me quite a lot is the error when you try to import existing configuration into a new drupal 8 website. I resolved this by adding a custom drush command that gets fired right before config import.
Blog
Set link field programmatically in drupal 8
Saving a link field is quite different from saving a text value in drupal 8. here's how its done.
Blog
Set geolocation field programmatically in drupal 8 [solved]
Populating geolocation field programmatically in drupal 8 is different from normal field values. This snippet does the trick:
Blog
Node access issues with content moderation
When using content moderation, the view_unpblished module does not work. But I really needed to get a user role to see all nodes created of this type and have access to it. With the following snippet, I fixed this.
Blog
How to forced uninstall a (missing) module using drush
Sometimes you forgot to uninstall a module when you removed it. To keep thing clean, uninstall the module using the following drush script.
Blog
Perform math calculation and add result to view programmatically [drupal 8]
A thing that is very nice about drupal 8 is the flexibility of views In this tutorial, a snippet about how to show a 'total' count of results of some number fields of a table.
Blog
Preview (image) file entities in file overview or views [drupal 8]
I encountered a problem while working on a big migration. The client wanted to reuse files and images, so I added entity browser functionality. The problem however was that views does not provide a preview image for files. Therefore I created a small module.
Blog
Delete all terms from vocabulary [drupal 8]
When importing tags, or when in development, you would sometimes need to delete all terms from a vocabulary. This snippet does the trick for you.