Drupal sites, modules, themes development
Get cookie for REST - how to obtain
Submitted by Svetoslav Stoyanov on Sat, 2018-09-15 13:35As 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).
Alter Link field in node
Submitted by Svetoslav Stoyanov on Sat, 2018-04-07 17:44hook_preprocess_node
Category:
Drush/PHP различни версии
Submitted by Svetoslav Stoyanov on Sat, 2018-03-17 16:48Използване на различни версии на 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
Angular 5 directive - Prevent double click
Submitted by Svetoslav Stoyanov on Fri, 2018-02-23 12:16with stopPropagation https://coryrylan.com/blog/creating-a-custom-debounce-click-directive-in...