Add Hook to Allow Entities to Be Acted Upon During Import

Created on 5 August 2020, over 4 years ago
Updated 3 October 2024, 6 months ago

Problem/Motivation

In some cases it would be beneficial to act on entities that are about to be imported.

Steps to reproduce

N/A

Proposed resolution

Add the module handler to the importer service and invoke hook_default_content_import.

Remaining tasks

  • Add default_content.api.php file describing the additional hook.
  • Add tests.

User interface changes

None.

API changes

Adds a hook_default_content_import() which other extensions may implement to act on the entity import.

Data model changes

None.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kerasai

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024