if you add to gitignore after files to be ignored are already indexed
git rm -r --cached tmp
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();
$nids = \Drupal::entityQuery('node')
->condition('type', 'my_custom_type')
->execute();
$nodes = \Drupal\node\Entity\Node::loadMultiple($nids);
$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();
\Drupal::logger('my_module')->notice($message);
if (PHP_SAPI === 'cli') {
ini_set('memory_limit', '512M');
}
If the problem is the memory limit at Acquia https://acquia.my.site.com/s/article/360005311613-Increasing-the-memory…
ie:
../vendor/drush/drush/drush --config=/var/www/html/freida.test/docroot/drush/drushrc.php --root=/var/www/html/freida.test/docroot miginteg --fixnids
Returning HTML from a Drupal 8 form programmatically:
invoke a form within a block or custom module page
$form = \Drupal::formBuilder()->getForm('Drupal\example\Form\ExampleForm');
if (file_exists(drupal_get_path('module', 'complimentmigration') . '/MyManual08-088-18.xml')) {
$xml = simplexml_load_file(drupal_get_path('module', 'complimentmigration') . '/MyManual08-088-18.xml');
$xml2 = (string) $xml->section->version->title;
drupal_set_message('' . print_r($xml2, TRUE) . '
');
}
reference: https://stackoverflow.com/questions/2867575/get-value-from-simplexmlele…
composer require drupal/search_api_solr or composer require --dev drupal/taxonomy_delete drush en -y search_api_solr drush cache-rebuild