The level of tracking detail depends on your configuration. While the parent module enables the link, the Acquia DAM (Widen) – Enhanced Integration Links submodule is required for deep-link visibility.
Feature | Acquia DAM (Widen) parent module | Enhanced integration links submodule |
|---|---|---|
Tracking level | Media Entity level | Content Entity level |
What is tracked? | Tracks the Media item itself, such as /media/1/edit. | Tracks every specific page/node where that media is used. |
Visibility | Shows that a Media entity exists in Drupal. | Displays every Node, Paragraph, Block, Site Studio component, Drupal Canvas component, page variant, content template, entity reference field, and entity reference revision field where the asset is embedded |
Best for | Basic asset inventory. | Comprehensive dependency mapping and audit trails. |
Review the status dashboard to check total assets, registered links, and remaining assets by media type.
Review the completion summary to check media items queued, content entity references queued, and queue items processed.
The feature supports three Drush commands for different workflows:
Performs the complete workflow: queues assets and processes them immediately.
Command syntax:
drush acquia-dam:register-integration-links [--batch-size=<number>] [--media-type=<type>] [--process-limit=<number>]
Options:
--batch-size: Number of assets to process per batch. Default: 50.
--media-type: Process only a specific media type.
--process-limit: Maximum queue items to process. Default: 0 (no limit).
Examples:
drush acquia-dam:register-integration-links
drush acquia-dam:register-integration-links --batch-size=100
drush acquia-dam:register-integration-links --media-type=acquia_dam_image_assetRecommended Usage:
Ideal for small to medium datasets or manual one-time operations.
Discovers assets and adds them to the queue without processing. Useful for large datasets or decoupled workflows.
Command syntax:
drush acquia-dam:queue-integration-links [--batch-size=<number>] [--media-type=<type>]
Examples:
drush acquia-dam:queue-integration-links
drush acquia-dam:queue-integration-links --media-type=acquia_dam_video_assetProcesses items already queued and provides controlled batch execution.
Command syntax:
drush acquia-dam:process-integration-links-queue [--process-limit=<number>]
Examples:
drush acquia-dam:process-integration-links-queue
drush acquia-dam:process-integration-links-queue --process-limit=100Integration links are automatically registered when:
The registration happens through Drupal's queue system. Cron processes the queue automatically with no manual action required for ongoing maintenance.
To manually trigger queue processing:
drush cronOr process the specific queue:
drush queue:run acquia_dam_integration_linksYou can re-run the registration process at any time. The system automatically skips assets that already have registered links, which prevents duplicates.
When to re-register:
Issue | Solution |
|---|---|
"Queue is empty" but assets show as remaining | Run the register integration links command: |
Processing is slow or times out | Use smaller batch sizes: |
Enhanced mode not detecting content entities | Clear cache: Verify sub-module is enabled: Re-run registration. |
Automatic maintenance:
Cron handles ongoing registration automatically. New or updated assets are queued and processed during scheduled Cron jobs without configuration changes.
Large sites:
For sites with many assets, use the decoupled workflow: queue assets first with queue-integration-links, then process in controlled batches with process-integration-links-queue. Schedule large operations during off-hours to minimize performance impact.
Enhanced mode:
Enable the Enhanced integration links sub-module early in your implementation for complete tracking. After you enable it, re-run the registration to catch existing content entity references.
In Enhanced mode, integration links are detected in these content structures:
If your project stores DAM references in a structure not listed, such as Layout Builder layouts or a custom field type from a third-party page builder, the system does not track those references until a detector exists for them. If a known asset in use does not display its locations, check for an existing detector.
A developer can add support for a new field type or third-party module through a custom module without changes to the Acquia DAM module. Add a class that scans an entity for DAM references, register it as a service tagged asset_detector, and rebuild caches. The module collects every service carrying that tag from all enabled modules.
To add a detector, complete these steps:
acquia_dam:acquia_dam_integration_links in your module's info file.AssetDetectorBase or implement AssetDetectorInterface and return both keys:asset_to_register: Return the DAM asset UUIDs referenced currently. assets_to_remove: Return the DAM asset UUIDs referenced previously, but no longer in use. asset_detector.Rebuild caches through UI or with Drush:
drush crTo scan referenced entities such as Drupal Canvas components or blocks, inject acquia_dam_integration_links.tracker and call runAssetDiscovery().
Available methods for custom detector
Method | Provided by |
|---|---|
discoverAsset() | AssetDetectorInterface |
filterSupportedFields() | AssetDetectorBase |
hasRelevantUpdates() | AssetDetectorBase |
resolveAssetId() | DamAssetResolverTrait |
resolveAssetIds() | DamAssetResolverTrait |
resolveAssetIdsFromMedia() | DamAssetResolverTrait |
loadMedia() | DamAssetResolverTrait |
extractEmbedUuid() | MediaEmbedExtractionTrait |
runAssetDiscovery() | AssetTracker |
Use these methods inside your detector class through extends or use, except runAssetDiscovery(), which you call on the injected acquia_dam_integration_links.tracker service. Bundled detectors are final, except ParagraphsAssetDetector. Extend AssetDetectorBase instead of a concrete detector.
After you add a detector, run registration again so that the system scans existing content.
To verify that the detector works:
Run one of these commands:
drush cron or
drush queue:run acquia_dam_integration_linksIf this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.