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
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/ | |
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane | |
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 | |
/** | |
* @file | |
* Install, update and uninstall functions for my module. | |
*/ | |
use Drupal\Core\Database\Database; | |
use Drupal\Core\Language\LanguageInterface; | |
/** |
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
ctrl + alt + shift + t = refactor this | |
alt + enter = allerlei shortcuts | |
ctrl + alt + l = reformat code | |
shift + f11 = show bookmarks | |
f11 = insert bookmark | |
alt + insert = file new | |
ctrl + n = navigate class | |
ctrl + shift + n = navigate file | |
ctrl + shift + f = find in path | |
ctrl + alt + shift + insert = commit file (eigen shortcut) |
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 | |
/** | |
* @file | |
* | |
* Minimal AJAX page. Call like this: | |
* $.ajax({ | |
* type: 'GET', | |
* url: '/drupal-ajax.php?param1=... | |
* data: {}, |
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 | |
// General function in base feature or custom module. | |
/** | |
* Return a file object after saving a default image and storing the fid | |
* in a variable. | |
* | |
* @param $default_image | |
* An associative array containing: |