For Drush 9 increase the memory limit for drush
if (PHP_SAPI === 'cli') {
ini_set('memory_limit', '512M');
}
if (PHP_SAPI === 'cli') {
ini_set('memory_limit', '512M');
}
put the following in your .vimrc file
let g:xml_syntax_folding=1
au FileType xml setlocal foldmethod=syntax
zo, and zc open and close one section under the cursor,
more commands are available here http://vimdoc.sourceforge.net/htmldoc/fold.html
Conditional memory limit changes in settings.php for Drupal 8
if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'edit') !== false ) {
ini_set('memory_limit', '256M');
}
php -d memory_limit=-1 /usr/local/bin/composer require drupal/taxonomy_menu
\Drupal::logger('my_module')->error($message);
\Drupal::logger('my_module')->notice($message);
drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55) . "\n";'
and put the code within:
$settings['hash_salt'] = ""
git rm -r --cached tmp
Great assets:
graphics:
https://opengameart.org/users/buch
music:
http://freemusicarchive.org/music/RoccoW/
texture generator, used for background:
http://cpetry.github.io/TextureGenerator-Online/
$node = Node::create(array( 'type' => 'article', 'title' => 'My Title', 'langcode' => 'en', 'uid' => '1', 'status' => 1, 'created' => $data[$dateIndex], 'field_autor' => $data[$autorIndex], 'field_teaser_text' => $data[$shortIndex], 'field_mytaxonomy' => [ ['target_id' => 12345] ] )); $node->save();
$connection = \Drupal::database(); $query = $connection->query("SELECT * FROM {node} n WHERE type > :type", [ ':type' => 'article', ]); $result = $query->fetchAll(); foreach ($result as $item) { $node = \Drupal\node\Entity\Node::load($item->nid); //dpm($node); $title = $node->get('title')->getValue(); $title = $title[0]['value']);