[Drupal8] Prevent double click
Submitted by Svetoslav Stoyanov on Tue, 2022-07-12 10:43// prevent-double-click.js // place the file in ./modules/custom/mymodule/js/ (function ($, Drupal) {
// prevent-double-click.js // place the file in ./modules/custom/mymodule/js/ (function ($, Drupal) {
Show username to authenticated user instead of just "My account".
If your default php is 7.2 for ex. but your site is with php7.4-fpm, how to use the same php7.4 when using composer for managing the modules?
How to have multiple php? https://www.digitalocean.com/community/tutorials/how-to-run-multiple-php...
How to use them?
Just in virtualhost config use as
An explanation of using services in various cases.
Inject a service in custom class:
with DI for renderer
Drupal-8.6.1 (8.6.x)
/core/lib/Drupal/Core/Field/MapFieldItemList.php on line 31
As the cookie work out-of-the-box in the browser, we can use it for rest request also almost out-of-the-box (use 'withCredentials: true' headerOption in a request, do not forget to enable 'supportsCredentials: true' in services.yml alongside other CORS config).
hook_preprocess_node
Използване на различни версии на drush и различни версии на PHP.
Инсталиране на drush:
git clone в /opt/drush-9.x (https://github.com/drush-ops/drush),
cd /opt/drush-9.x
composer install
Инсталиране на PHP-7.1 - с phpfarm (https://github.com/fpoirotte/phpfarm)
.bashrc