If an element is given #markup, the render process stops searching for nested elements. 2011, tim.plunkett
While some value keys are standard for all render arrays or forms, most are actually dependent on the theme that ultimately renders each element. These keys can be found in drupal_render(), form_builder(), and element_children().
Any key that is not listed in one of these functions is instead used by the theme functions. The theme functions that make up forms try to do a good job of standardizing keys and reusing them across themes; these are documented here. However, this reference does not include non-form render array types, which may or may not use these same keys. For instance, in the example above, the 'container' type expects the '#attributes' key, but the 'markup' type does not, so passing an '#attributes' key to that element won’t do anything. Similarly, the '#title' and '#href' keys would be meaningless in the 'container' element.
© Copyright 2001 - 2016 Webel IT Australia (ABN: 67 677 268 579). All rights reserved (except as specified below).
PHP code examples from Webel IT Australia on this site are distributed under the GNU General Public License.
Excludes text and code snippets from Drupal.org quoted for educational purposes.
Drupal’s online documentation is © 2000-2014 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0.
PHP code from Drupal.org is distributed under the GNU General Public License.
Drupal® is a registered trademark of Dries Buytaert.
Text quoted from Wikipedia for educational purposes is made available under the Creative Commons Attribution-ShareAlike License.
Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.
Site developed by Webel IT Australia.