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
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork acquia_dam-3556464
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
f.mazeikis commentedComment #7
wim leers#3550750: Adding bundle-specific expression branching support to `ReferenceFieldTypePropExpression` is in!