- 🇮🇹Italy apaderno Brescia, 🇮🇹
@berdir is correct: The value for
#theme
is usually a string, but it could be an array too. It is not required to be an array.I am not sure that needs to be documented, as there are few cases where an array is really necessary. (If an array were always expected, Drupal core would require an array by default.)
- 🇮🇹Italy apaderno Brescia, 🇮🇹
I checked the 8.x-1.x branch for this project repository, but it is empty. I take the documentation files are not on this project anymore.
- Status changed to Closed: won't fix
14 days ago 7:13am 26 March 2025 - 🇳🇿New Zealand quietone
This is for the Drupal 7 Form API reference. Since Drupal 7 is past end-of-life this is now a "won't fix".
Work on documentation for form elements for supported versions of Drupal is at 📌 [meta] Move/Create Form Element Documentation Active and 🌱 [Meta] Improve documentation for Render and Form Elements Active .