#[ListOf]
Attribute on parameters and properties.
Declares the item type of an array parameter: a backed enum or a value
class (PHP has no generics). Used in block attribute classes, value classes
and REST arguments.
min and max limit the number of items editors can create. They are no
schema keywords of stored values, so a stored list outside the limits is
kept as it is: the editor marks it, and only its first max items are
created. REST arguments validate them (minItems, maxItems).
Editors see each item as a card that they can expand, collapse and drag to
sort. Its heading is the first text of the item (the label of an enum
case), else itemLabel with the number of the item.
With appender, the block editor shows one more item in the canvas, empty
and faded, as long as the list is below max: a click adds it. The template
marks the root element of each item with list_item().