I hoped the documentation for theme_field() would tell me how to create a render array that may be parsed by that function.
Based on that, I thought something like this would work.
return array( 'test' => array( '#theme' => 'field', '#label_hidden' => false, '#title_attributes' => 'class="test123"', '#label' => 'test', '#content_attributes' => 'class="test456"', '#items' => array() ) );
It prints a
what am I doing wrong?
The ultimate goal is of course printing some field_items, but I can find no documentation on how the render array for #items should look; nothing I tried outputs anything.
A pointer to better documentation might answer my questions.