Unrendered array (as plain text and with a krumo version):
array(
'#markup' => 'Some basic text in a #markup (shows basic markup and how it is rendered)',
)
Rendered version (light blue):
Some basic text in a #markup (shows basic markup and how it is rendered)
Unrendered array (as plain text and with a krumo version):
array(
'#markup' => 'This one adds a prefix and suffix, which put a div around the item',
'#prefix' => '<div><br/>(prefix)<br/>',
'#suffix' => '<br/>(suffix)</div>',
)
Rendered version (light blue):
(prefix)
This one adds a prefix and suffix, which put a div around the item
(suffix)
Unrendered array (as plain text and with a krumo version):
array(
'child' => array(
'This is some text that should be put together',
'This is some more text that we need',
),
'#separator' => ' | ',
'#theme' => 'render_example_aggregate',
)
Rendered version (light blue):
This is some text that should be put together | This is some more text that we need |
Unrendered array (as plain text and with a krumo version):
array(
'child1' => array(
'#markup' => 'Markup for child1',
),
'child2' => array(
'#markup' => 'Markup for child2',
),
'#theme_wrappers' => array(
'render_example_add_div',
'render_example_add_notes',
),
)
Rendered version (light blue):
Markup for child1Markup for child2
This is a note added by a #theme_wrapperUnrendered array (as plain text and with a krumo version):
array(
'#markup' => '<div style="color:green">markup for pre_render and post_render example</div>',
'#pre_render' => array(
'render_example_add_suffix',
),
'#post_render' => array(
'render_example_add_prefix',
),
)
Rendered version (light blue):
This markup was added after rendering by a #post_render
markup for pre_render and post_render example
This #suffix was added by a #pre_render
Unrendered array (as plain text and with a krumo version):
array(
'#markup' => '',
'#pre_render' => array(
'render_example_cache_pre_render',
),
'#cache' => array(
'keys' => array(
'render_example',
'cache',
'demonstration',
),
'bin' => 'cache',
'expire' => 1337443652,
'granularity' => 5,
),
)
Rendered version (light blue):
The current time was Sat, 19 May 2012 10:06:32 -0600 when this was cached. Updated every 60 seconds