Move filter implementations from filter.module to plugin classes

Created on 4 August 2021, over 3 years ago
Updated 2 July 2024, 5 months ago

Problem/Motivation

Way back in #1868772: Convert filters to plugins filters were converted to plugins. But these mostly consist of one line process methods:

  public function process($text, $langcode) {
    return new FilterProcessResult(_filter_autop($text));
  }

  public function process($text, $langcode) {
    return new FilterProcessResult(_filter_html_escape($text));
  }

Steps to reproduce

Proposed resolution

Move the filter process code into the plugins themselves, and deprecate and remove the procedural code in filter.module.

Remaining tasks

Identify which plugins and functions need to change.

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Filter 

Last updated 3 days ago

No maintainer
Created by

🇬🇧United Kingdom longwave UK

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024