Configuration import, export and synchronization

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}/",
        }
      }
    ]
  }

 

JSON:API disable caching locally

To disable caching while testing your JSON:API endpoints you should put this into your settings.php

$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';

but for this to work, you need to define this service null, which should be added as

Get list of all installed modules and their dependencies

You probably don't need this but for debugging purposes i checked system.install file and saw how dependencies are checked on drupal updates.
So to get full list of modules and its info run

$files = \Drupal::service('extension.list.module')->getList();

to get theme info go