Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The system should be able to deduce entity plugins that implement our interface without that hook. Of course it's a bit tricky to do it without the performance impact of loading all entity classes. Challenge accepted ;-).
Comment | File | Size | Author |
---|---|---|---|
#3 | asset_injector-2871874-3-Obsolete-hook_asset_injector_asset_info.patch | 5.01 KB | geek-merlin |
Comments
Comment #2
geek-merlinPatch flying in with a quick hack of this, untested yet.
Comment #3
geek-merlinFIxed two typos and tested, works like a charm.
This patch must be applied on top of #2869562: Deployment does not change asset files.
Comment #5
pookmish CreditAttribution: pookmish commentedThis worked. I switched out one of the deprecated functions. Switched
\Drupal::entityManager()
with\Drupal::entityTypeManager()