Loading
Resolve #3626884 "Replace check_markup() and image_style_options(), deprecated in Drupal 11.4"
Closes #3626884.
- Thumbnail formatter: the image style options are built from the image style storage the formatter already holds, instead of
image_style_options().ImageDerivativeUtilities::styleOptions()does not exist before Drupal 11.4, and this works the same on every supported core, with no version switch. "- None -" comes from#empty_option, like the "Link image to" select next to it. The one visible difference: on a site with no image styles, the select shows "- None -" instead of core's "No defined styles". Both store an empty value. - FilterTest: renders a
processed_textelement withrenderInIsolation()instead of callingcheck_markup(), which is whatcheck_markup()itself does on Drupal 10 and 11.
AI-Generated: Yes (Claude Code was used to write the code and this description. I reviewed and ran the work myself before posting it.)
Edited by Frank Mably