'url' =>
['value' => null, 'source' => 'static'
],
'newTab' =>
['value' => false, 'source' => 'static'
],
'minHeight' =>
['source' => 'static', 'value' => '300px'
],
'displayMode' =>
['value' => 'standard', 'source' => 'static'
],
'verticalAlign' =>
['value' => null, 'source' => 'static'
],
],
) ->
build();
// create a category with image slider, and image override
$category =
(new CategoryBuilder($ids, 'category-1'
)) ->
layout('my-category-layout'
) ->
slot( 'slot-1',
[ 'sliderItems' =>
[ 'source' => 'static',
'value' =>
array_map(fn (string
$id) =>
['mediaId' =>
$id],
array_values($ids->
getList(['media-13', 'media-14'
]))),
],
'speed' =>
['source' => 'static', 'value' => 300
],
'autoSlide' =>
['source' => 'static', 'value' => false
],
'minHeight' =>
['source' => 'static', 'value' => '300px'
],