Drupal Dump

Drupal Snippets, Hacks and more....

495 posts since 2011

xDebug config in VS Code for lando

To add xdebug config to VS CODE for lando, use this config

    "version": "0.2.0",
    "configurations": [
        "name": "Listen for XDebug",
        "type": "php",
        "request": "launch",
        "port": 9000,
        "pathMappings": {
          "/app/": "${workspaceFolder}/",


Adding your git ssh keys to docker container (for linux)

I wanted to have an option to use ssh keys I use for git not only on host machine but also on remote one made by docker. To do that I tried several ways how to push this key to container. There are some info on SSH forwarding but in the end what worked best for me is just simple mounting a file (ssh key) to php container (using docker4drupal by wodby).

Copy paste images to CKeditor body field like on Medium

By default you can't copy and paste images from clipboard to text field using CKeditor, I would argue this should even be in core as if you are writing an article this would be very useful to have, even more then what "Media" module brings. So how to add this to drupal. Well not easy as usual :)

How to get which CKEditor version is your drupal installation running?

There is a simple way to do this over dev tools in browser, just to to "node edit" or a place where CKEditor is active and run


and you will get the version. Currently, it is at 4.14.1 which is almost the latest in 4.x versions, but there is also 5.x version that drupal is still not using.