composer update drupal/console --with-dependencies
NOTE: This should be executed within your drupal site root directory.
composer update drupal/console --with-dependencies | |
<?php | |
use Drupal\Core\Database\Database; | |
function module_update_80NN() { | |
$field = 'field_name'; | |
$tables = [ | |
'node__'.$field, | |
'node_revision__' .$field | |
]; |
<?php | |
// ... | |
public function onPrepareRow(MigratePrepareRowEvent $event) { | |
$row = $event->getRow(); | |
$fields = $event->getMigration()->getPluginDefinition()['process']; | |
foreach ($fields as $destination => $source) { | |
if (!is_array($destination) && !is_array($source)) { | |
if ($row->getSourceProperty($source) == "NULL") { |
Install Composer
https://getcomposer.org/download/
Install DrupalConsole launcher tool
curl https://drupalconsole.com/installer -L -o drupal.phar
mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal
Proposed format:
Drush Command | Description | Equivalent | Will not Implement | Notes |
---|---|---|---|---|
config-get |
Display a config value, or a whole configuration object. | config:debug |
These steps are superseded by instructions at the following doc pages:
{ | |
"name": "drupal-composer/drupal-project", | |
"description": "Project template for Drupal 8 projects with composer", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"authors": [ | |
{ | |
"name": "", | |
"role": "" | |
} |
# Composer | |
vendor | |
# OS generated files # | |
###################### | |
.DS_Store | |
.DS_Store? | |
._* | |
.Spotlight-V100 | |
.Trashes |