Sometimes you find just the right resources that fulfill certain need and nothing much should be added to them, in those cases I will just collect them on this page and add short comment why is this so.
Sometimes you find just the right resources that fulfill certain need and nothing much should be added to them, in those cases I will just collect them on this page and add short comment why is this so.
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 get all crontabs from users on your system write this one liner
for user in $(getent passwd | cut -f1 -d: ); do echo $user; crontab -u $user -l; done
to check other crons you need to see what is in for example
ls -la /etc/cron.daily
or
To find it via drush, run this command
drush php:eval "echo drupal_get_installed_schema_version('modul_name');"
also if you want to look it up with some DB admin tool, look under table `key_value`, `system.schema` collection row, with a `name` of your module and you will get value of last run update.
So before we made an setup for rsyslog and some advanced log output that can be read by datadog (or others).
In this post I will show you how to setup monitor, alerting and drupal syslog module. So let's first start with drupal syslog, I usually set this setup for syslog format
So I will assume you installed syslog and have some default config running for it with syslog_facility set to log_local0. With that lets assume you are using rsyslog and you have config for it in
/etc/rsyslog.conf
which could have all config in this file or separated config files that are included with
I wanted to rename lots of filed and folders for my modules, but not to do it manually I made an php script that does this for me. Also I used my IDE to rename code(class names and methods). So just replace root where is the code you want to change file and folder names and do that for strings also.
One thing to take note when using ajax callbacks on filed that can have unlimited number is to use delta in wrapper names.
When creating custom entity you will use "BaseFieldDefinition" code snippets where you will define many things about this field, one of the things you may want to define is suffix or prefix that will be used in display of this field either on entity view or on views that use this field. To do that you will add it to setSettings array simple as 'suffix' => '%'