Skip to content

Installation

Prerequisites

Before installing the Image Link Formatter module, ensure you have:

  • Drupal 10+ (with PHP 8.1+)
  • Image module (core) — enabled
  • Link module (core) — enabled
  • Composer for dependency management

Installation Steps

composer require drupal/image_link_formatter

Then enable the module:

drush pm:enable image_link_formatter -y

Or via the UI: Administer → Extend → Image Link Formatter

Manual Installation

  1. Download the module to web/modules/contrib/image_link_formatter/
  2. Copy the sub-module folder as well (if using responsive images):
    web/modules/contrib/image_link_formatter/ └── responsive_image_link_formatter/
  3. Enable via Administer → Extend

Verify Installation

Check that both modules are enabled:

drush pm:list --type=module --status=enabled | grep -i image_link

You should see: - image_link_formatter - responsive_image_link_formatter (if enabled)

If you need responsive images (art direction with different sources), enable the sub-module:

  • Machine name: responsive_image_link_formatter
  • Location: web/modules/contrib/image_link_formatter/responsive_image_link_formatter/

This provides an additional formatter: - ✅ Responsive image wrapped within link field

Next Steps

Configuration Guide