Detailed information about this step can be found here.
composer global require squizlabs/php_codesniffer ^2.9
composer global require drupal/coder ^8.2
Detailed information about this step can be found here.
composer global require squizlabs/php_codesniffer ^2.9
composer global require drupal/coder ^8.2
/** | |
* $(document).ready() block. | |
*/ | |
$(document).ready(function() { | |
console.log("Document loaded!"); | |
}); | |
/** | |
* Shorthand for $(document).ready(). | |
*/ |
Use code below in the .install file of your module (my_module).
<?php
/**
* Implements hook_install().
*/
function my_module_install() {
// Set an initial value for the schema version so we can run updates
// after install (for first installation only).
Detailed information about this step can be found here.
composer global require drush/drush:8.*
composer global update
We can state any Drush version we need. We can also roll back to a necessary release version of Drush using commands above. Now, we can use Drush:
In order to run any sudo commands without typing a password we should add next two lines into /etc/sudoers at the end of the file (use sudo for open this file).
User_Alias ADMINS = username
ADMINS ALL = NOPASSWD: ALL
where username
is the user to whom permissions should be granted.