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
/** | |
* Enables field_formatter_settings and borealis | |
*/ | |
function ilr_update_7003() { | |
variable_set('ilr_test', 'test-value'); | |
} |
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
#https://www.drupal.org/node/645286 | |
php core/scripts/run-tests.sh --url http://example.com/ --class "Drupal\module_name\Tests\TestClass::testMethod" |
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
#http://stackoverflow.com/questions/2668886/git-copy-all-files-in-a-directory-from-another-branch | |
git checkout master -- dirname |
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 commit -m "Something terribly misguided" (1) | |
$ git reset --soft HEAD~ |
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
path=${1} | |
if [ $1 ] | |
then | |
wget -q -O - $1 | git apply - | |
else | |
echo "please enter url" | |
exit | |
fi |
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
/** | |
* Constructs a new UserLoginResource object. | |
* | |
* @param \Drupal\Core\Flood\FloodInterface $flood | |
* The flood controller. | |
* @param \Drupal\user\UserStorageInterface $user_storage | |
* The user storage. | |
* @param \Drupal\Core\Access\CsrfTokenGenerator $csrf_token | |
* The CSRF token generator. | |
* @param \Drupal\user\UserAuthInterface $user_auth |
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
1. read https://github.com/blinkreaction/drude - do 1 time setup | |
2. git clone --depth 1 git@github.com:tedbow/drude-d8-start.git | |
3. | |
3. drupal site:new docroot |
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
Let’s say that I am on the master branch. But I wanted slothparadise.txt from the devel branch. | |
git checkout devel -- slothparadise.txt |
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
$new_region = NULL; | |
if (!isset($regions[$this->region]) && $this->status()) { | |
if (isset($this->original)) { | |
$original_region = $this->original->getRegion(); | |
// If \Drupal\block\BlockInterface::BLOCK_REGION_NONE was used to | |
// disable the block and we have an original region then keep in the | |
// block in the original region. | |
if (isset($regions[$original_region]) && $this->region == BlockInterface::BLOCK_REGION_NONE) { | |
$new_region = $original_region; | |
} |
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\outside_in\Ajax; | |
use Drupal\Core\Ajax\OpenDialogCommand; | |
/** | |
* Defines an AJAX command to open content in a dialog in a off-canvas tray. | |
* | |
* @ingroup ajax |
OlderNewer