Disabling caching on JSON API endpoints doesnt seem possible with using just below in your sevices file
Disabling caching on JSON API endpoints doesnt seem possible with using just below in your sevices file
If you are using VS Code and xdebug you might encounter situation where you dont see all the array entries and drupal has huge arrays, reason for this is xdebug setting and its default, to fix this you need to make script for xdebug like this with "max_children": 999,
Using JSON API or commerce api or even JSON API resources is great but it is limited to entities and whole architecture is aimed at them. This is fine in most cases but what if you want to output some config or some random data. You will need to get creative a bit. So what we do is then make custom drupal 8 controller, you setup the usual router yml like
You may want to xdebug site on remote server, maybe you dont even want to run site locally but just have remote server running the site and codebase to all be there. You could have development server running on some hosting. To do that first you need to
If you are using lando and xdebug, you need to make sure that your docker-php-ext-install all go through (https://docs.lando.dev/guides/installing-php-extensions-on-lando.html#_…), otherwise xdebug might not be installed properly, after that also make sure xdebug setting is
If you updated your environment to php 7.3 or higher, there is a good chance you will have default syslog settings that is syslog.filter set to no-ctrl
http://php.itronic.at/manual/en/errorfunc.configuration.php#ini.syslog…;
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}/",
}
}
]
}
You can get current users order/cart with this
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).
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 :)