If any react errors try:
If yarn start or yarn watch is throwing any errors, try git pull, and then yarn install
If yarn start or yarn watch is throwing any errors, try git pull, and then yarn install
Create an advancedqueue
create a file like advancedqueue.advancedqueue_queue.ipc_merge_sync.yml in modules/custom/ipc_syncdb/config/install
id: ipc_merge_sync label: 'IPC Merge Sync' backend: database backend_configuration: {} processor: cron processing_time: 180 locked: truethen import it with drush cim --partial --source=/home/ipc/www/ipc/docroot/modules/custom/ipc_syncdb/config/install
For a multiple-value field, to add the value to the end of the list, use the following code.
$node->field_code_used_by[] = ['target_id' => $user_id];
For a single use
$group_content1->group_roles->target_id = $role_id
use Drupal\Core\Site\Settings;
$api_key = Settings::get('ipc_merge'); $key = \Drupal::request()->server->get('HTTP_X_API_KEY');
then in settings.local.php or settings.php you would put
$settings['ipc_merge'] = 'XXXXXXXXXXXXXXXXXXXXXXXX';
\Drupal::config('ipc_syncdb.settings')->get('transaction_api_log_level');
or
use Drupal\Core\Config\ConfigFactoryInterface; $config = $this->configFactory->get('ipc_syncdb.settings'); $requestParams->logLevel = $config->get('transaction_api_log_level');
https://www.drupal.org/docs/upgrading-and-converting-drupal-7-modules/s…
This is working code, as a workaround in using entityquery:
look in theme.liquid to add the javascript to the head
look in header.liquid to find the header HTML in the theme.
Put this in their config:
{ "send_stats": false, "translate_images": false, "language_selector" : [ { "U" : "U", "T" : "T", "I" : "OneLinkJS_langSel", "C" : "C", "position" : "first" } ] }
and the one liner in the head of the document.
\Drupal::logger('ipc_order_sync')->notice('Adding the following order to the enqueJob @order_id with transaction id of @transaction_id', [ '@order_id' => $order['order_id'], '@transaction_id' => $order['transaction_id'], ]);
In your settings.php:
$settings['foo'] = 'bar';
In your code:
use Drupal\Core\Site\Settings; Settings::get('foo', 'mydefaultvalue');
drupal advancedqueue:queue:process ipc_transaction_sync
or
drush advancedqueue:queue:process ipc_transaction_sync
or
drush advancedqueue:queue:process ipc_order_sync