Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Links to Iframes Filter

4 sites Security covered Drupal 10–11
View on drupal.org

This module provides a text filter that automatically replaces specific links with iframe embed code. You can configure which links to convert and the corresponding iframe markup to use. This is useful for embedding content from certain external sites directly into your Drupal content.

Provides a Drupal text filter that replaces configured links with iframe markup.

What it does

  • Stores link to iframe replacements in a custom database table.
  • Adds a text filter plugin: Replace links with iframes.
  • When enabled on a text format, matching links in processed text are replaced with the configured iframe markup.

Requirements

  • Drupal 10 or 11
  • Core filter module (declared as a dependency)

Installation

  1. Enable the module.
  2. Rebuild caches.

Configuration

  1. Go to: /admin/config/content/links-to-iframes
  2. Add one or more replacements:
    • Link
    • Iframe
  3. Save replacements.

Enable the filter on a text format

  1. Go to: /admin/config/content/formats
  2. Edit the text format you want.
  3. Enable Replace links with iframes.
  4. Save the text format.

Matching behavior

  • Matches anchors by exact href value.
  • Replacement runs only where that text format is applied.

Example input and output

Configured replacement:

  • Link: https://example.com/embed#swap-for-iframe
  • Iframe: <iframe src="https://example.com/embed" frameborder=""></iframe>

Input (text using a format with the filter enabled):

<p>
   <a href="https://example.com/embed#swap-for-iframe">Open embed</a>
</p>

Output after filtering:

<p>
   <iframe src="https://example.com/embed"></iframe>
</p>

Data storage

  • Data is stored in table: links_to_iframes_filter
  • Cache tag used by the filter: links_to_iframes_filter:mappings

Testing

phpunit tests area available in the /tests folder.

Depends on

Dependencies of the latest stable release

  • filter Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Mar 2026
Latest release
4 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Jun 2, 2026
1.0.0-beta1 Pre-release 10–11 Apr 29, 2026
1.0.0-alpha1 Pre-release 10–11 Mar 25, 2026
1.0.x-dev Dev 10–11 Mar 25, 2026