Skip to content
Snippets Groups Projects
Commit d5149893 authored by Mikael Meulle's avatar Mikael Meulle
Browse files

Issue #3466385 by just_like_good_vibes: Field formatter process text does not appear processed

parent 4c826964
No related branches found
No related tags found
1 merge request!174Fix Markup conversion to slot
Pipeline #246669 passed
......@@ -78,9 +78,7 @@ class SlotPropType extends PropTypePluginBase {
*/
public static function convertFrom(string $prop_type, mixed $value): mixed {
return match ($prop_type) {
'string' => [
'#plain_text' => $value,
],
'string' => ($value instanceof MarkupInterface) ? ["#children" => $value] : ["#plain_text" => $value],
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment