Skip to main content

Drupal gerelateerd

D10 Module met D11 compatibility patch gebruiken:

Add the patch in your composer.json patches section.

            "drupal/image_widget_crop": {
                "#3451140": "https://git.drupalcode.org/project/image_widget_crop/-/merge_requests/24.diff"
            }

If you don't have composer-drupal-lenient yet, add it to your project first:

composer require mglaman/composer-drupal-lenient

If your minimum stability is not set to dev yet, you need to do that first:

composer config minimum-stability dev

Add this module to the lenient allowed list:

composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/image_widget_crop"]'

Now you can add this module to your D11 project:

composer require 'drupal/image_widget_crop:2.x-dev@dev'

And of course you can enable it

drush en image_widget_crop



Wanneer composer require, of composer install niet werkt omwille van deze melding:

HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of apassword.
  • test eerst ssh connectie met de gewone:
ssh -T git@git.drupal.org
  • Als dat in orde is, is er iets niet correct met een of meerdere repositories in de composer.yml file. Probeer ze een voor een te openen om te zien of de links werken. Voorbeeld van een correcte:
        {
            "type": "git",
            "url": "https://git.drupalcode.org/issue/yoast_seo-3435792"
        },

composer altijd lokaal runnen, buiten lando

composer why drupal/core
composer why-not drupal/core 11

composer update drupal/* --with-all-dependencies --prefer-dist
composer outdated "drupal/*"
composer show drupal/core-recommended
composer update "drupal/core-*" --with-all-dependencies
composer update drupal/core --with-all-dependencies --prefer-dist
composer update drupal/core --with-dependencies
composer update drupal/core 'drupal/core-*' --with-all-dependencies
COMPOSER_MEMORY_LIMIT=-1 composer update --with-dependencies --prefer-dist
composer update drupal/* --with-dependencies
composer update drupal/* --with-dependencies --prefer-dist

COMPOSER_MEMORY_LIMIT=-1 composer require drupal/system_tags
COMPOSER_MEMORY_LIMIT=-1 composer require drupal/domain_menu_access
COMPOSER_MEMORY_LIMIT=-1 composer require drupal/domain_menu_access:1.x-dev
COMPOSER_MEMORY_LIMIT=-1 composer require zaporylie/composer-drupal-optimizations:^1.0
composer update drupal/core --with-dependencies
composer require --update-with-dependencies 'drupal/colorbox:^1.6'
composer require --update-with-dependencies drupal/core:^8.8
composer require --ignore-platform-reqs drupal/media_pdf_thumbnail
composer require --update-with-dependencies --ignore-platform-reqs drupal/field_group
composer require drupal/core:^8.8 --update-with-dependencies --prefer-dist

composer show drupal/paragraphs
composer show 'drupal/webform' | grep 'versions' | grep -o -E '\*\ .+' | cut -d' ' -f2 | cut -d',' -f1;
composer prohibits drupal/core 8.8.2
composer update --dry-run "drupal/core"
composer outdated 'drupal/*'

composer update --dry-run "drupal/*"
COMPOSER_MEMORY_LIMIT=-1 composer require --dev symfony/var-dumper
composer global update --with-dependencies --prefer-dist

composer versie updaten

composer self-update

Drush versie updaten

composer require drush/drush --update-with-dependencies

Drupal core updaten naar laatste versie:

composer update drupal/core-recommended -W

oud commando (moet niet meer gebruikt worden als je core-recommended hebt):

composer update "drupal/core*" --with-all-dependencies