Install
Works with Drupal: ^9.1 || ^10Using Composer to manage Drupal site dependencies
Alternative installation files
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