Drupal 9: Simplenews, Swiftmailer and Attachments (via hook_mail_alter)
In Drupal 8/9 simplenews can add attachments only from file-field (and I am not sure if this works correctly because simplenews is adding the whole file-entity to the attachments-array and swiftmai
How to "fix" 403 access denied exceptions for Drupal 8 Views translation routes
Date (range) fields and Entity Query [Update]
Dealing with *DEPTH TOO GREAT* in Kint
Change source id mapping of a Drupal 8 migration
Drupal Core's Migrate API maintains an internal table mapping unique source ids to destination ids. This is usually done via a database table that holds the field values that together uniquely identify a source row and the matching destination id of the entity in Drupal.
Illegal mix of collations exception caused by Drupal 8 Autocomplete with Entity Reference View
Looking at a Recent log messages report of one of our Drupal 8 instaces, I came across this error message:
Change list of valid URI schemes in Drupal 8
If you need to support obscure URI schemes in your Drupal 8 instance and you're getting error messages about invalid URI schemes, this post is for you.
Programmatically change views pager type or options
Suppose you have a view and want to dynamically alter the number of results shown by the view based on the view arguments.
Render a single field of an entity
Sometimes you just want to get the renderable array of a single field of an entity instead of the full entity.
Programmatically render an exposed filter form
If you need to render an exposed form programmatically, you could use the following snippet. The result will be a renderable array for the exposed form.