The caption filter (Drupal\filter\Plugin\Filter\FilterCaption) now has the renderer injected instead of fetching it from the container in process(). Its constructor takes two optional service arguments:
public function __construct(
array $configuration,
$plugin_id,
$plugin_definition,
?FilterPluginManager $filterManager = NULL,
?RendererInterface $renderer = NULL,
)
Calling the constructor without either argument is deprecated in drupal:12.1.0. Both arguments will be required in drupal:13.0.0.
Code that creates the plugin through the filter plugin manager is not affected. Only code that subclasses FilterCaption and overrides its constructor, or calls new FilterCaption() directly, needs to change: pass both services.
Before:
new FilterCaption($configuration, $plugin_id, $plugin_definition, $filter_manager);
After:
new FilterCaption($configuration, $plugin_id, $plugin_definition, $filter_manager, $renderer);
The first service parameter was renamed from $filter_manager to $filterManager. Code that passes it as a named argument must use the new name.