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.
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.
Active
2.0
Code