Function __global->create_template_tree_metadata
Definitions
sources/themes_meta_tree.php
- Prepare template tree metadata.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type | integer | No | No | 0 | N/A | N/A | Tree node type (a TEMPLATE_TREE_NODE__* constant) |
| $identifier | mixed | No | No | Blank (empty string) | N/A | N/A | Identifier (string or Tempcode) |
| $children | mixed | No | No | [] | N/A | N/A | Child nodes (array) or Tempcode node to get children from (Tempcode) |
Returns
- Metadata structure
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Prepare template tree metadata.
*
* @param integer $type Tree node type (a TEMPLATE_TREE_NODE__* constant)
* @param mixed $identifier Identifier (string or Tempcode)
* @param mixed $children Child nodes (array) or Tempcode node to get children from (Tempcode)
* @return array Metadata structure
*/
function create_template_tree_metadata(int $type = 0, $identifier = '', $children = []) : array
* Prepare template tree metadata.
*
* @param integer $type Tree node type (a TEMPLATE_TREE_NODE__* constant)
* @param mixed $identifier Identifier (string or Tempcode)
* @param mixed $children Child nodes (array) or Tempcode node to get children from (Tempcode)
* @return array Metadata structure
*/
function create_template_tree_metadata(int $type = 0, $identifier = '', $children = []) : array
