- Issue created by @Grimreaper
In UI Suite Bootstrap, in the table component, there is:
{% if caption %}
<caption>{{ caption }}</caption>
{% endif %}
The table presenter template is passing an empty string as the caption variable.
But in the component template I have an array with an empty #children.
In ui_patterns/src/Plugin/UiPatterns/PropType/SlotPropType.php, there are 2 problematic places :
if (is_string($value)) {
return ['#children' => Markup::create($value)];
}
After making the proposed change I obtain an empty array with #cache from:
protected static function cleanRenderArray(array $value): mixed {
if (empty($value)) {
// Element::isRenderArray() returns FALSE for empty arrays.
return ['#cache' => []];
}
Using UI Suite Bootstrap, create a View using a table display.
if (is_string($value) && !empty($value)) {
return ['#children' => Markup::create($value)];
}
I don't know what to do about the other place where there is a problem.
Active
2.0
Code