This is a technical description of the 3.x branch of the module. For the newer 4.x branch, see this article.
Blog
Why you should be using Simple XML sitemap > 3.0
This is a technical description of the 3.x branch of the module. For the newer 4.x branch, see this article.
Get image URL from media field in twig
Apparently there are still pretty common Drupal 8 theming tasks that cannot be accomplished with the great twig_tweak module. This by the way was me giving a plug to a great little module, which makes half of all your theme preprocess hooks unnecessary.
Clone entity data into existing entities in Drupal 8 & 9
Creating a duplicate of an entity
Creating a duplicate of an entity is easily done via the entity API method Entity::createDuplicate(). This is a convenient method if the goal is to clone an entity into a new entity, as all identifiers of the previous entity get unset when using this method.
Creating Drush 9 commands and porting legacy commands
Upgrading to Drush 9
Drush should be installed and updated through composer. There is no stable Drush 9 version yet, so the development version must be used. Updating to the development version of Drush 9 is a simple as typing:
$ composer require drush/drush:dev-master
Porting your Drush commands to Drush 9
Porting the commands is a semi-automatic process: There is a command that will generate the required files and class structure for you. To start the wizard, just type: