Install

Works with Drupal: ^9.1 || ^10

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 66.79 KB
MD5: 8f7676064f2ba3ced5383349da813d8d
SHA-1: bcf3c7ed18095b682eb5619386985a7166051c31
SHA-256: 0e8e396e9e78d45af651088d51ce2a716aee25f3776f5db4079b9c65dcae1cd8
Download zip 117.48 KB
MD5: a05c88bb6cca6cfacdb1bd8bb68679c3
SHA-1: ce2a51b024082100442c0736f3c9d137af7c5b0a
SHA-256: 9e68dcdc64f662df52d5828e65eb85b96afa4274b5381ba5ff9bd4ef2af04981

Release notes

D10 compatibility

This is the first release where we explicitly declare support Drupal 10.

Important! We bumped minimum core version to 9.1 to be able to support D10.

Users are encouraged to thoroughly test prior to using this in production with Drupal 10. Issues should be reported in the issue queue, please.

New Drush command service definition

This release includes a change in the drush definition, introduced in #3254437: Delete queue items for `entity_usage_regenerate_queue` when `running drush entity-usage:recreate`. In certain scenarios, the service definition might be cached and a Drupal bootstrap using the new code (where there is an old cached definition) might break with an error such as:

ArgumentCountError: Too few arguments to function Drupal\entity_usage\Commands\EntityUsageCommands::__construct(), 4 passed in /mnt/www/html/***/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 and exactly 5 expected in Drupal\entity_usage\Commands\EntityUsageCommands->__construct() (line 54 of /mnt/www/html/***/docroot/modules/contrib/entity_usage/src/Commands/EntityUsageCommands.php) #0 /mnt/www/html/***/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\entity_usage\Commands\EntityUsageCommands->__construct() 

If this happens, usually a cache rebuild is enough to make the error go away. Users are encouraged to test this release on a non-production environment first to make sure your project's build scripts work as expected.

All changes since beta-6:

#3307683: Add an optional limit parameter to the EntityUsage::listSources method by jhedstrom
#3301522: User batch update processing user #0 forever by super_romeo, marcoscano
#3293255: Add array shapes to documented typehints by dpi, marcoscano
#3263196: Fix deprecations for drupal 10 compatibility by victoria-marina, Berdir, DieterHolvoet, marcoscano, mathilde_dumond, tmaiochi
#3292815: Introduce Interface for entity_usage.entity_update_manager service by el7cosmos, dpi, marcoscano
#3291423: Move entity_usage_post_update_regenerate_2x() into entity_usage.post_update.php by galooph, agoradesign, seanB, Berdir, marcoscano
#3101451: Getting the base fields is not supported for entity type Block. by marcoscano, jnycz, rivimey, tim.plunkett, DrColossos, yusufhm
#3252873: $to_track variable declared twice by berramou, hmendes, marcoscano
#3254437: Delete queue items for `entity_usage_regenerate_queue` when `running drush entity-usage:recreate` by BetoAveiga, jonraedeke, moshe weitzman, marcoscano
#3243608: Error: Call to a member function getRevisionId() on null in Drupal\entity_usage\EntityUsageTrackBase->trackOnEntityUpdate() by marcoscano, itamair
#3228479: Plugin class docblock is incorrect for most plugins by anwar_max, marcoscano, hardikpandya, joachim

Created by: marcoscano
Created on: 9 Sep 2022 at 10:02 UTC
Last updated: 9 Sep 2022 at 11:16 UTC
Bug fixes
New features

Other releases