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 | |
$adam = array( | |
'remote-host' => 'adammalone.net', | |
'root' => '/var/www/html/adammalone/docroot', | |
'uri' => 'adammalone.net', | |
'strict' => 0, | |
'path-aliases' => array( | |
'%dump-dir' => '/home/adammalone/.drush/dumps', | |
'%files' => 'sites/default/files', |
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 | |
// Place in $HOME/.drush/drushrc.php | |
// OBSOLETE workaround for lack of SSL cert handling at fastly for updates.drupal.org. | |
// Running without ssl exposes you to man-in-the-middle attacks, so REMOVE THIS, since | |
// https support is now unofficially provided again. | |
// $command_specific['pm-download']['source'] = 'http://updates.drupal.org/release-history'; |
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 | |
require_once dirname(__DIR__) . '/vendor/autoload.php'; | |
use Silex\Application; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\Response; | |
$app = new Silex\Application(); |
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 | |
// Usage: php drupal-finder.php /var/www/some/example/path | |
include __DIR__ . '/vendor/autoload.php'; | |
$path = array_pop($argv); | |
$finder = new \DrupalFinder\DrupalFinder(); | |
print "Input: " . $path . PHP_EOL; |
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 | |
$entity = \Drupal::entityTypeManager()->getStorage('user')->create(array()); | |
$formObject = \Drupal::entityTypeManager() | |
->getFormObject('user', 'register') | |
->setEntity($entity); | |
$form = \Drupal::formBuilder()->getForm($formObject); | |
print \Drupal::service('renderer')->render($form); |
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
diff --git a/.gitignore b/.gitignore | |
index fc00ed5..ac82bec 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -5,6 +5,7 @@ web/core | |
web/modules/contrib | |
web/themes/contrib | |
web/profiles/contrib | |
+web/libraries | |
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
drush ev '\Drupal::service("router.builder")->rebuild();' |
Add the following two files: settings.local.php
and services.local.php
to the web/sites/default/
folder within your Drupal 8 project to override settings such as enabling Twig debug and disabling cache.
Depending on the project, you may need to rename the files to local.settings.php
and local.services.yml
respectively.
Create file at ~/console/chain/generate-controller-form-render.yml
containing:
command:
name: 'generate:controller:form:render'
description: 'Controller + Form generator'
commands:
- command: 'generate:module'
options:
module: example
OlderNewer