"Edit on Bynder" form element only visible on default media edit form

Created on 23 November 2022, about 2 years ago
Updated 22 July 2024, 6 months ago

Problem/Motivation

The "Edit on Bynder" field that can be drag/dropped/re-ordered on the "Manage form display" tab for Bynder media types doesn't actually work unless the form is the default /media/ID/edit form.

This is due to the following:

/**
 * Implements hook_form_alter().
 */
function bynder_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  if ('media_bynder_edit_form' == $form_id) {

Different form modes have a different form ID.

Proposed resolution

Always add the element if $form_state->getObject() is an instance of MediaForm.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

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.

  • πŸ‡ΊπŸ‡ΈUnited States dpagini

    Ran into this same issue today and was going to create the issue, so I'm +1 on this one. Overall I find this module confusing in that, it provides a media entity source of Bynder, but also provides (in a strange config manner) a single bundle for that config.

Production build 0.71.5 2024