How to display label and field output inline
According to default field.html.twig file template which is use to render fields, you have to set #label_display =&gt; 'inline'
and #title =&gt; 'Your label'
Most of themes render inline label and content when class field--label-inline exist, but it is possible that you remove this css style from your theme.