Drupal is a registered trademark of Dries Buytaert

QR Code Formatter is a simple module that defines a Field Formatter for Links to be displayed as a QR image.

Setup

  1. Install the module as you would normally install a contributed Drupal module or theme via Composer.
    composer require drupal/qr_code_formatter
  2. Go to display settings of any entity. For example:(/admin/structure/types/manage/basic_page/display)
  3. Look for the link type field, in the Format column you should see QR Code Formatter

The module uses the chillerlan/php-qrcode to generate an SVG with the QR. The SVG is placed inline. The module doesn't deal with caching as it delegates this to the place where it is used.

See an example:

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Jan 22, 2025