If composer runs out of memory
php -d memory_limit=-1 /usr/local/bin/composer require drupal/taxonomy_menu
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']);
$database = \Drupal::database(); foreach ($roles as $role) { $query = $database->select('role_terms', 'rt'); $query->condition('rt.uid', $userCurrentId);
\Drupal::logger('my_module')->notice($message);
if (PHP_SAPI === 'cli') { ini_set('memory_limit', '512M'); }
Returning HTML from a Drupal 8 form programmatically: