Drupal

Blog

Create link with class in drupal 8

Snippet to create a link with a class programmatically.

Blog

Make your theme css available in CKEditor of drupal 8

When editing notes, an often mentioned problem of webmasters is the lack of preview of their text. With this snipped you can embed the css of your theme in CKEditor, which makes it much more visible towards your webmasters.

Blog

How to create a mailchimp subscription with drupal 8 webform and custom handlers [VIDEO]

This code will make you manage subscriptions in mailchimp via a drupal 8 webform.

Blog

Migrate data from drupal 7 to drupal 8 custom script

How can you query for nodes, terms etc of a drupal 7 website from your drupal 8 website? 

Blog

Add your theme css to ckeditor in drupal 8 [updated]

A frustrating thing for webmasters is often that they cannot see the eventual lay-out of text styling in their CKEditor. This snippet fixes this issue.

Blog

How to add real inline javascript to a drupal 8 page or module

This module explains how you can add custom scripts inside your controllers. Something that is useful for things like e-commerce and advertising.

Blog

Add extra "Add content"-link to toolbar menu in drupal 8

This little tip adds just that extra good feeling for your webmasters. And a click less to the "Add content" page.

Blog

Date field formatting in twig in drupal 8

The following snippet makes you format a date field inside a twig file.

Blog

Get current language langcode in drupal 8

You often need to get the current language in your Drupal 8 custom modules or theme. Here's how to get it.

Blog

How to import a specific config files map with drush

Sometimes you want to import specific config files, out of your main config library. Here's a drush snippet which does exactly that.

Subscribe to Drupal