Part of the External ecosystem · 22 projects
This module automatically creates and synchronizes Drupal media entities from remote data exposed by the External Entities module. It generates a dedicated media type for each external entity type and uses a Drush command to populate these media entities, optionally downloading and caching thumbnail images locally.
Automatically creates and synchronizes Drupal media entities from remote data exposed through the External Entities module. Each enabled external entity type gets its own media type, populated via a Drush command — no custom code required.
Features
- Automatically creates a dedicated media type for each external entity type when synchronization is enabled.
- Drush command to create, update, and clean up media entities in bulk. Supports filtering by entity type or by specific remote IDs.
- Configurable behavior when a remote entity disappears: do nothing, unpublish, or delete the corresponding media.
- Each media entity is only an entity reference to the external entity.
- Downloads and caches remote thumbnail images locally from a configurable Drupal field (e.g. field_image_url).
- One-click batch deletion of all media entities linked to an external entity type, with confirmation step.
Post-Installation
- 1. Go to Administration > Structure > External Entity Types.
- 2. Edit an existing external entity type.
- 3. Open the Media synchronization tab.
- 4. Check Enable media synchronization, set the thumbnail field machine name (e.g. field_image_url) and choose the missing-entity behavior.
- 5. Save, a media type is created automatically.
- 6. Run drush xnttms to populate media entities from the remote source.
Drush commands
The drush commands allow to set a certain amount of workers to speed up the process. Each worker is its own drush subprocess that free used memory after its process is finished.
external-entities:media-sync
drush xntt:ms [types] [--ids=<ids>] [--workers=<1-10>] [--batch-size=<n>]
Create or update media entities that reference the remote external entity.
drush xntt:ms
drush xntt:ms publications,exhibitions
drush xntt:ms publications --ids=123,456
external-entities:media-delete
drush xntt:md [types] [--ids=<ids>] [--workers=<1-10>] [--batch-size=<n>]
Delete all synchronized media entities.
Additional Requirements
- External Entities (https://www.drupal.org/project/external_entities)
- Drupal core Media module
Ask your assistant about External Entities Media Synchronizer
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- External Entities
- Token
- image Drupal core
- media Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the External ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.1.0 | Stable | 11 | Nov 24, 2026 | ||
| 1.0.7 | Stable | 11 | Nov 24, 2026 | ||
| 1.0.6 | Stable | 11 | Nov 23, 2026 | ||
| 1.0.5 | Stable | 11 | Nov 4, 2026 | ||
| 1.0.4 | Stable | 11 | Oct 26, 2026 | ||
| 1.0.3 | Stable | Oct 21, 2026 | |||
| 1.0.2 | Stable | 11 | Oct 21, 2026 | ||
| 1.0.1 | Stable | 11 | Oct 14, 2026 | ||
| 1.0.x-dev | Dev | 11 | Oct 13, 2026 |