Part of the External ecosystem · 22 projects
This module helps manage data integration issues with external entities by allowing you to create and apply custom processors. These processors can reformat data from external APIs or databases, such as dates or file URLs, to match Drupal's expected formats. A field mapper then associates these processors with specific fields of your external entities.
Sometimes when we integrate external entities with external APIs or databases that we cannot control, the data received does not always match the format expected by Drupal. A clear example can be dates, or URLs to internal files that need to be imported to Drupal to be able to show them.
This module allows generating different processors for these cases quickly and easily and with a fieldmapper to associate those processors to the appropriate fields of the external entity.
Requirements
This module requires the following modules:
Installation
Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.
Configuration
- Enable the module at Administration > Extend.
- If you already have an exernal entitie created, go to its edition page. If not, create one as you would normally.
- On Field mapper, select Fields processors mapper
- Select for each mapped field, the processor you want to use.
FAQ
Q: How do I write a field processor?
A: Create a custom module, and add a new class in src/Plugin/ExternalEntities/FieldMapProcessor/. Create a class that extends FieldMapProcessorBase and add an annotation like this:
/** * This is a description of what my processor does. * * @FieldMapProcessor ( * id = "mi_own_processor", * label = @Translation("My Processor"), * description = @Translation("Thiw is what my processor does."), * field_types = "text,textarea" * ) */
Maintainers
- Juanjo López - Juanjol
Ask your assistant about External Entities Field Processors
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
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.0.0-alpha2 | Pre-release | 9–10 | May 17, 2023 | ||
| 1.0.0-alpha1 | Pre-release | 9–10 | May 17, 2023 |