To ensure that all preprocess functions are picked up, the hooks_converted parameter has been renamed to skip_procedural_hook_scan and the StopProceduralHookScan attribute has been renamed to ProceduralHookScanStop.
When updating modules to 11.2, if the module has used the old parameter or attribute, it should be sufficient to do a find and replace with the new name after ensuring that all preprocess functions are converted to OOP. A module can also chose to add both parameters.
Note: The services parameter and especially the attribute are mostly useful for large modules with many functions (e.g. legacy hooks to support 11.0 and earlier versions). For smaller modules, the performance improvement are very likely tiny and probably not measurable at all. Both are entirely optional and purely a performance optimization.
Before
parameters:
MODULE_NAME.hooks_converted: true
After
parameters:
MODULE_NAME.skip_procedural_hook_scan: true
Before
use Drupal\Core\Hook\Attribute\StopProceduralHookScan;
#[StopProceduralHookScan]
function locale_translation_batch_version_check() {
After
use Drupal\Core\Hook\Attribute\ProceduralHookScanStop;
#[ProceduralHookScanStop]
function locale_translation_batch_version_check() {