Drupal Code Generator Cheatsheet
Drupal Code Generator Cheatsheet (3.6.1)
Now Drupal Console has been officially deprecated lets have a look at the array of available commands available to Drush users using the in built Drupal Code Generator.
Drupal Code Generator Cheatsheet (3.6.1)
Now Drupal Console has been officially deprecated lets have a look at the array of available commands available to Drush users using the in built Drupal Code Generator.
A couple of months ago Drupal Console was declared end of life.
Launched at the same time as Drupal 8 back in 2016, Drupal Console was installed via composer. e.g.
composer require-dev drupal/console:~1.0 --pr
Trying that with a stable Drupal 8 site you may run into problems. e.g.
Your requirements could not be resolved to an installable set of packages.
2022 was turning into a good year for work. I had just secured a working from home opportunity for a well known UK based insurance company. Turns out they had just recently offered the majority of their in house development team early retirement. The ones that were left to pick up the pieces had too much work to handle updating Drupal to the latest version and this was the primary reason I was being brought in.
In Drupal there are the QueueWorker
and QueueWorkerManager
classes that are helpful in managing a queue. One benefit of managing tasks is a queue is they offer a way of managing tasks or jobs in an orderly way. Think First in First Out.
The way the QueueWorker in Drupal works is tied in with cron.
Lets have a look at the run function in web/core/lib/Drupal/Core/Cron.php
Bootstrap SASS Starter Kit provides a turnkey solution to help you quickly create your own custom Drupal theme that utilises the popular Twitter Bootstrap Framework.
Migrate Process Text to Paragraphs provides a Migrate process plugin to allow processing of string with new lines into string with paragraphs (similar to nl2br()).
process:
'body/value':
-
plugin: get
source: text
-
plugin: migrate_process_text_to_paragraphs
delimiter: \n // default \n\n
https://www.drupal.org/project/migrate_process_text_to_paragraphs
Migrate Process Newspaper3k provides a Migrate process plugin to enable you to request and extract data from the python based Newspaper3k article download framework.
This is a simple module that adds a CSS Reset at a module level. One benefit of this appoach is that the 'reset' can be loaded before other modules that include some css etc. This means that the 'reset' should only normalise the user agent's styles and not styles that have been defined in other core and contributed modules that may be loaded by Drupal before the theme layer.
This is simple utility module that enables you to increase the length of the 'uri' field used by the 'file_managed' table which is in turn used by Drupal's 'file' entity. This module increases the maximum length from varchar(255) to varchar(2048).
By default, in Drupal there is a restriction of 255 chars on the varchar size or length of the uri field in the file_managed table. In some circumstances this is not sufficient and may result in an exception.
e.g.
Social Post X is a Drupal module that allows you to post tweets to a X account.
Social Post X also integrates with the Rules module.