Form Alter for 6.x

Created on 3 February 2025, 3 months ago

Problem/Motivation

In the 5.x version of this module, it used the Drupal form API to render the form to select assets. The 6.x version drops that, and instead inserts a version of the form as a "New, decoupled asset browser" built in TypeScript. While the new forms appears to have a lot of new options for searching for assets, unfortunately, this broke a lot of the integration we had built around the 5.x version of the module.

We had built an integration with the Drupal media library, enabling us to generate media assets through that UI on user selection of the Brandfolder assets. We also had some form alters to insert an alt text field that that would be added to the generated Drupal media entity.

I'm hoping for some guidance on how to perform similar operations on the new Brandfolder UI, and I'm afraid I don't have a lot of typescript experience. Perhaps you can just provide some pointers in the right direction here. Alternatively, maybe this can be a feature request to make using the new browser optional in the 6.x version? As of now, I'm planning on rolling back this upgrade to the 5.x version, and just manually patching some of the deprecation warnings, as we are implementing PHP upgrades as well (yes, a bit late on this one).

πŸ’¬ Support request
Status

Active

Version

6.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bburg Washington D.C.

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

Comments & Activities

Production build 0.71.5 2024