Function __global->convert_template_tree_metadata_to_screen_tree

Definitions

sources/themes_meta_tree.php

  • Convert the metadata template tree gathered in the Tempcode engine, to a simplified screen tree.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$metadata array No No required parameter N/A N/A Metadata structure (with 'type', 'identifier', and 'children')

Returns

  • Screen tree structure (null: omitted node)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Convert the metadata template tree gathered in the Tempcode engine, to a simplified screen tree.
 *
 * @param  array $metadata Metadata structure (with 'type', 'identifier', and 'children')
 * @return ?array Screen tree structure (null: omitted node)
 */

function convert_template_tree_metadata_to_screen_tree(array $metadata) : ?array