This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm $(git ls-files --deleted) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create the new user | |
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; | |
#create the new database | |
CREATE DATABASE newdatabase; | |
#assign the user to it | |
GRANT ALL PRIVILEGES ON newdatabase. * TO 'newuser'@'localhost'; | |
#flush | |
FLUSH PRIVILEGES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\my_module\Plugin\Field\FieldFormatter; | |
use Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter; | |
use Drupal\Core\Field\FieldItemListInterface; | |
/** | |
* Plugin implementation of the 'my_module image' formatter. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\my_module; | |
/** | |
* Service to doi Stuff. | |
*/ | |
class DoStuff extends XYZ { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_theme_suggestions_HOOK_alter(). | |
*/ | |
function MYMODULE_theme_suggestions_HOOK_alter(array &$suggestions, array $variables) { | |
array_unshift($suggestions, 'ADD_MY_MODULE_SUGGESTION'); | |
} | |
/** | |
* Implements hook_theme_registry_alter(). | |
*/ | |
function MYMODULE_theme_registry_alter(&$theme_registry) { |