Wordpress ressources for a VM + composer installation & notes
Popular VM
A basic install instance could be
site_name:
A basic install instance could be
site_name:
Install Sublime text client https://github.com/martomo/SublimeTextXdebug
Install chrome xdebug helper https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc
$ php -S localhost:8081
$ lsof | grep LISTEN
$ kill -9 $(lsof -t -i :35729)
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
<?php | |
/** | |
* @file | |
* Drupal site-specific configuration file. | |
* | |
* IMPORTANT NOTE: | |
* This file may have been set to read-only by the Drupal installation program. | |
* If you make changes to this file, be sure to protect it again after making | |
* your modifications. Failure to remove write permissions to this file is a |
@see commandes https://thinktandem.io/blog/2017/10/23/killer-d8-workflow-using-lando-and-platform-sh/
Lancer la commande lando behat à partir du dossier /tests
.
Ou lancer la commande lando behat --config=tests/behat.yml
à partir de la root.
Assuming your code is running for a node page, the methods I see used most often in core/contrib modules are either using menu_get_object() or arg():
if ($node = menu_get_object()) {
// Get the nid
$nid = $node->nid;
$ git log origin/master