Install
Works with Drupal: ^9.3 || ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
8.9 KB
MD5: 0123fb03bf278c8c84c639d905f0e195
SHA-1: c35a975c7cac36836d7763ce32dc3ab7e52f49d2
SHA-256: 2c49087388123b0e46f2c041c1861310ea20b989233ddaef90f3b8188c1c5f5e
Download zip
10.58 KB
MD5: bb48d4aeac4be99c168f2e3f2306288e
SHA-1: b23381f76dab03be58aea3a41416ff2ed17c6a2f
SHA-256: 2c379bf4069e98a43e429828878206f4c9dd6754831043e0ccbcbfae36c721b3
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.
3.0.0-beta1
Lorem Picsum Shortcode for Shortcode 3.x and Drupal 11.1+ / 12.
Requirements
- Drupal ^11.1 || ^12
- Drupal ^11.1 || ^12
- Shortcode ^3.0
- The plugin now uses the Shortcode 3.x PHP attribute (
#[Shortcode]) instead of the annotation. - Method signatures, strict types and
#[\Override]now match the Shortcode 3.x interface. - Raised the core requirement to
^11.1 || ^12and the Shortcode requirement to^3.0. - No changes to the
[picsum]shortcode or its options. - From 2.0.x: update Drupal and Shortcode, then update this module. Your content needs no changes.
- From the 7.x Unsplash Shortcode: see the README, as all the 2.0.0-beta1 breaking changes apply.
- Sites on Drupal 9.3–10 or Shortcode 2.x should stay on 2.0.x.