Drupal 8

How do I create a Drush command

Submitted by drupalviking on Mon, 09/14/2020 - 10:20

Here is how I scaffold a module to be able to run Drush commands.

First, I create the module with Drupal Console: drupal generate:module

Then, I have to create the file drush_services.yml and include this in it:

  class: \Drupal\MY_MODULE\Commands\WHATEVERINAMEMYCLASSCommands
    - { name: drush.command }


Submitted by drupalviking on Thu, 08/03/2017 - 09:58

Handling media in Drupal has been … let’s just admit it .... horrible. Even in Drupal 7, the Media module didn’t really handle media very well. The only module who came close was Scald, but it was a cumbersome module to work with and required quite a skillset to install and configure.

My first impression on Drupal 8

Submitted by drupalviking on Thu, 08/03/2017 - 09:31

So, Drupal 8 is the new kid on the block. And whoa, is that the most popular person on the prom! The three major things (and there are hundreds more) that I like about D8 are the fact that you can (and should!) control all Drupal downloads with Composer.  Everything else is just crazy. And the other two things are Configuration Management and Drupal Console.