Invoke Hook before createMedia

Created on 19 March 2025, about 1 month ago

Problem/Motivation

In our project we need to take over custom fields into the created media entity. I know that adding a config and a form to do so is currently out of scope.
However, if the module invokes a custom hook right before the media gets created, we can map the fields in a custom module.

Proposed resolution

The module should invoke a alter-hook, containing

  • a reference to $mediaValues, so it can be altered and
  • a reference to $assetData so custom code can access the custom kontainer-fields.

I suggest the Name to be "HOOK_create_kontainer_entities_alter" (aka. the system name "create_kontainer_entities")

Remaining tasks

  • Approval of Name
  • Review

User interface changes

none

API changes

Yes, a new Hook. No changes to the existing API.

Data model changes

none

Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇩🇪Germany RobinCS

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024