Make LinkStatusHandler plugin self contained.

Created on 11 September 2024, 3 months ago

Problem/Motivation

The current LinkStatusHandler plugins currently only has the processing function for processing the different different methods of handling the error.

The problem is that they makes it very hard for integrators or third party modules to add different checks.

Basically there is no way to easily add configuration of additional plugins without altering the admin form, and then we need to store the configuration changes separately, because there is no third party section in the default configuration, which means that the custom settings can't be added to this configuration.

Our requirement is that currently the 404 handler uses the `EntityPublishing` system to unpublish the entity. Where as our requirement is to use the moderation state and set the "archive" state the entity instead instead of just unpublishing.

Proposed resolution

Expand the current LinkStatusHandler plugin to include a settings form which will be included on to settings page. Generally I would add this into an array like

$form['thirdparty'][$plugin_id] = $plugin->settings($form, $form_interface, $form, $settings->thirdparty($plugin_id));

When the admin form is loading it will call the form on each plugin as a subform and also pass the current settings as well.

During the settings submit it will save these plugin as part of the third part settings.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇦🇺Australia gordon Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gordon
  • 🇳🇴Norway eiriksm Norway

    Just a thought, but your requirements kind of sounds like it would be easier to simply replace/override the plugin instead of integrating with it?

Production build 0.71.5 2024