Skip to content

Update DownloadLinkFieldFormatter to allow an option to download by UUID based...

Added support for UUID based URLs for download links.

Includes:

  • A new route: '/media/{media_uuid}/download-uuid' (for handling UUID based downloads)
  • A new permission: 'download media by UUID' (for example this permission might be used in a more 'permissive' way for anonymous users, while the existing 'download media' permission might be used in tandem for more trusted user roles)
  • Additional functional test: DownloadByUuidTest.php along the same line as existing DownloadByTest.php, but will calls to the UUID based download path
  • Linkit module support with 2 new substitution plugins so that UUID based download URLs are supported.
  • FieldFormatter plugin (DownloadLinkFieldFormatter) has been updated with a 'url_type' option so that UUID based URLs are supported. If this option is not already set it defaults to 'ID' and the existing behaviour is used - i.e. this is backwards compatible.
  • A new views field plugin so that UUID based download URLs are supported.

Merge request reports