Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current code calls
$element['#attributes']['class'][] = 'media-element';
which should be
$element['#attributes']['class'] .= 'media-element';
The attached code fixes that. Or should we check whether the variable is an array or a string?
Comment | File | Size | Author |
---|---|---|---|
media_token_to_makrup.patch | 660 bytes | jurgenhaas | |
Comments
Comment #1
deggertsen CreditAttribution: deggertsen commentedConfirming that that patch fixes the issue.
Comment #2
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedClosing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team