Install
Works with Drupal: ^9.3 || ^10 || ^11Using dev releases is not recommended, except for testing.
Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
8.91 KB
MD5: 6a44e3c25071616c51b4e3c6d7dff105
SHA-1: c2d915069e12115fc5dc8a3bcd2943bef2d178c9
SHA-256: bc76de47928ea586c6273925f2162665fe341e5aec3bd5a528e04f0fd291f43e
Download zip
10.58 KB
MD5: 85f82d5380445a23d11cc9f12f2b6ff4
SHA-1: ad2a32d80068828581b0a735ff7df60467087662
SHA-256: 9481ead87c83bc7a9cad69a4515bf733d1cc738ca124031bc234edc2c7e7090a
Release notes
First release of the Drupal 9.3+ port of the Unsplash Shortcode, now renamed Lorem Picsum Shortcode.
Requirements
- Drupal ^9.3 || ^10 || ^11
- Shortcode ^2.0
Changes
- Ported from Drupal 7 to the Shortcode 2.x plugin API (
@Shortcodeannotation). - Switched from the defunct unsplash.it to Lorem Picsum.
- Renamed the module to
picsum_shortcodeand the shortcode to[picsum]. - Output attributes are now escaped.
- Fixed a stray
gap xclass being added whenclasswas set. The image now haspicsum-imageplus any class you pass. - Added a README and
composer.json.
Breaking changes
- Existing
[unsplash]tags will no longer render. Replace them with[picsum]. - The
gravityoption is removed because Picsum has no equivalent. - Picsum image IDs differ from the old unsplash.it image numbers.
- The CSS class changed from
unsplash-imagetopicsum-image.