Match Acquia DAM Video assets for Canvas `video` shape

Created on 6 November 2025, about 5 hours ago

Problem/Motivation

Canvas has video shape described in its schema.json file. Acquia DAM Video assets should be matched by props of this shape.

Proposed resolution

Update CanvasHooks to support additional video schema:

  const SCHEMA_TO_MEDIA_SOURCE_PLUGIN= [
    // @see \Drupal\media\Plugin\media\Source\Image
    'json-schema-definitions://canvas.module/image' => 'acquia_dam_asset:image',
    'json-schema-definitions://canvas.module/video' => 'acquia_dam_asset:video',
  ];

Add logic, that uses updated SCHEMA_TO_MEDIA_SOURCE_PLUGIN constant.

Remaining tasks

Write tests, update code as appropriate to match changes in #3551419 📌 Refactor canvasHooks for further DAM media types support Active

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom f.mazeikis Brighton

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

Merge Requests

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