qr_code_formatter
Security covered
QR Code Formatter is a simple module that defines a Field Formatter for Links to be displayed as a QR image.
Setup
-
Install the module as you would normally install a contributed Drupal module or theme via Composer.
composer require drupal/qr_code_formatter - Go to display settings of any entity. For example:(/admin/structure/types/manage/basic_page/display)
- 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: