find all files recursively and do a line count and get the total number of lines of code
find . -print | xargs wc -l | sort -nr
find . -print | xargs wc -l | sort -nr
composer outdated "drupal/*"
php -d memory_limit=-1 /usr/local/bin/composer update drupal/core-recommended --with-dependencies
If you wanted to update Drupal’s token module for example, you would use the command composer update drupal/token --with-dependencies
https://chromatichq.com/blog/using-composer-outdated-manage-drupal-depe…
composer update would upgrade all modules
// Build and render the group_content/user profile form for this user. $group_content = \Drupal::entityTypeManager() ->getStorage('group_content') ->loadUserGroupContentByUser($user); $inline_form = \Drupal::service('plugin.manager.commerce_inline_form') ->createInstance('content_entity', [], $group_content); $form['group_content'] = $inline_form->buildInlineForm( [ '#parents' => array_merge($form['#parents'], ['group_content']), '#inline_form' => $inline_form, '#weight' => 10, ], $form_state );
drush ms to see the migrations
# this will run the migration
drush mim migration_name
# to stop the migration
drush mst migration_name
# to reset the migration when it won't stop and it just constantly says "running"
drush mrs migration_name
# to roll back your migration
drush mr migration_name
#this will reload just your migration your editing
drush config-import --partial --source=modules/custom/ipcsync/config/install
* click on setup for the Communities page --> then click on the square of colorful dots in the upper left (app launcher) --> then search for "knowledge"
* from there you can create new articles
* to find your community go to setup--> then "Quick find" search box on the left under app launcher (the square of dots), and search for "communities", then choose all communities.
* to assign topics go to "content management" and then "article management" and then choose articles to assign to topics. Create the topics under "topic management"
drush queue-list
to see a list of queues and how many are lined up in each
there's also
drush queue-run
drush sqlq "DELETE FROM queue WHERE name='message_subscribe'" is the only way to clear a queue
composer require drupal/entity_browser --dev
composer require --dev phpunit/phpunit ^7
https://www.drupal.org/docs/8/phpunit/running-phpunit-tests-within-phps…
in a custom module setup a directory structure as such: tests/src/Unit/SkeletonTest.php Call the test and the php file anything you like, then the file contains the following (this is a most basic test obviously):
Run all the tests for a module with