The register integration links features in Acquia DAM (Widen) enables you to track where DAM assets are used throughout your Drupal website. When you register integration links, Acquia DAM (Widen) displays all locations where each asset is referenced. This simplifies asset use management, helps to identify dependencies, and ensures content consistency.
Note
The Acquia DAM (Widen) module automatically registers integration links whenever a new DAM asset is added. The commands and user interface steps detailed in this document are primarily for:
Re-register: Perform this after a major content migration or to enable Enhanced mode.
Troubleshoot: Run a one-time registration of existing assets or fix instances where an expected link is missing.
For ongoing maintenance, manual action is not required.
Prerequisites
In your Drupal application:
Confirm that you have administrative access to the Drupal site.
Verify that your site is authenticated with Acquia DAM (Widen).
For integration links Drush commands support, confirm that the Acquia DAM module version 1.1.12 or later.
(Optional) Enable the Acquia DAM (Widen) - Enhanced integration links sub-module for enhanced tracking of content entity references.
For Site Studio, Drupal Canvas, and entity reference revisions fields, confirm that the Acquia DAM module version 1.1.20 or later.
Feature comparison: Standard versus enhanced tracking
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.
Register integration links
Through the admin user interface
In the administrative menu, select Configuration.
Select Acquia DAM (Widen) under Media to open the Acquia DAM (Widen) configuration page.
Select the Integration links tab.
Review the status dashboard to check total assets, registered links, and remaining assets by media type.
Select the Register Integration Links to start the batch process.
Monitor the progress bar as the system:
Processes media entities
Processes content entities (Enhanced mode only)
Completes all registration operations
Review the completion summary to check media items queued, content entity references queued, and queue items processed.
Through the Command-Line interface (Drush)
The feature supports three Drush commands for different workflows:
1. Register integration links (All-in-One)
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_asset
Recommended Usage:
Ideal for small to medium datasets or manual one-time operations.
2. Queue integration links
Discovers assets and adds them to the queue without processing. Useful for large datasets or decoupled workflows.
Integration links are automatically registered when:
A new DAM asset is added to Drupal
An existing media entity is updated
Content entities are saved with DAM references (Enhanced mode)
Drupal Canvas content templates or page variants are saved with DAM references (Enhanced mode)
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 cron
Or process the specific queue:
drush queue:run acquia_dam_integration_links
Re-registering integration links
You can re-run the registration process at any time. The system automatically skips assets that already have registered links, which prevents duplicates.
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.
Extending tracking to custom content structures
In Enhanced mode, integration links are detected in these content structures:
Media reference fields, which include entity reference and entity reference revisions fields
Text fields with embedded media through the What You See Is What You Get (WYSIWYG) media embed
Drupal Canvas component trees, which include content templates and page variants
Acquia Site Studio layout canvas fields and components
Paragraphs, which include nested paragraph content
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.
Add a custom detector
To add a detector, complete these steps:
Depend on acquia_dam:acquia_dam_integration_links in your module's info file.
Extend 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.
Register the class as a service tagged asset_detector.
Rebuild caches through UI or with Drush:
drush cr
To 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.
Verify detector configuration
After you add a detector, run registration again so that the system scans existing content.
To verify that the detector works:
Save an entity that references a DAM asset through your custom structure.
Run one of these commands:
drush cron
or
drush queue:run acquia_dam_integration_links
Open the asset in Acquia DAM and confirm that the new location displays in the list.
How do I use the register integration links feature for the Acquia DAM Module?
The register integration links features in Acquia DAM (Widen) enables you to track where DAM assets are used throughout your Drupal website. When you register integration links, Acquia DAM (Widen) displays all locations where each asset is referenced. This simplifies asset use management, helps to identify dependencies, and ensures content consistency.
Note
The Acquia DAM (Widen) module automatically registers integration links whenever a new DAM asset is added. The commands and user interface steps detailed in this document are primarily for:
Re-register: Perform this after a major content migration or to enable Enhanced mode.
Troubleshoot: Run a one-time registration of existing assets or fix instances where an expected link is missing.
For ongoing maintenance, manual action is not required.
Prerequisites
In your Drupal application:
Confirm that you have administrative access to the Drupal site.
Verify that your site is authenticated with Acquia DAM (Widen).
For integration links Drush commands support, confirm that the Acquia DAM module version 1.1.12 or later.
(Optional) Enable the Acquia DAM (Widen) - Enhanced integration links sub-module for enhanced tracking of content entity references.
For Site Studio, Drupal Canvas, and entity reference revisions fields, confirm that the Acquia DAM module version 1.1.20 or later.
Feature comparison: Standard versus enhanced tracking
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.
Register integration links
Through the admin user interface
In the administrative menu, select Configuration.
Select Acquia DAM (Widen) under Media to open the Acquia DAM (Widen) configuration page.
Select the Integration links tab.
Review the status dashboard to check total assets, registered links, and remaining assets by media type.
Select the Register Integration Links to start the batch process.
Monitor the progress bar as the system:
Processes media entities
Processes content entities (Enhanced mode only)
Completes all registration operations
Review the completion summary to check media items queued, content entity references queued, and queue items processed.
Through the Command-Line interface (Drush)
The feature supports three Drush commands for different workflows:
1. Register integration links (All-in-One)
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_asset
Recommended Usage:
Ideal for small to medium datasets or manual one-time operations.
2. Queue integration links
Discovers assets and adds them to the queue without processing. Useful for large datasets or decoupled workflows.
Integration links are automatically registered when:
A new DAM asset is added to Drupal
An existing media entity is updated
Content entities are saved with DAM references (Enhanced mode)
Drupal Canvas content templates or page variants are saved with DAM references (Enhanced mode)
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 cron
Or process the specific queue:
drush queue:run acquia_dam_integration_links
Re-registering integration links
You can re-run the registration process at any time. The system automatically skips assets that already have registered links, which prevents duplicates.
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.
Extending tracking to custom content structures
In Enhanced mode, integration links are detected in these content structures:
Media reference fields, which include entity reference and entity reference revisions fields
Text fields with embedded media through the What You See Is What You Get (WYSIWYG) media embed
Drupal Canvas component trees, which include content templates and page variants
Acquia Site Studio layout canvas fields and components
Paragraphs, which include nested paragraph content
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.
Add a custom detector
To add a detector, complete these steps:
Depend on acquia_dam:acquia_dam_integration_links in your module's info file.
Extend 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.
Register the class as a service tagged asset_detector.
Rebuild caches through UI or with Drush:
drush cr
To 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.
Verify detector configuration
After you add a detector, run registration again so that the system scans existing content.
To verify that the detector works:
Save an entity that references a DAM asset through your custom structure.
Run one of these commands:
drush cron
or
drush queue:run acquia_dam_integration_links
Open the asset in Acquia DAM and confirm that the new location displays in the list.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.