You are here

constant BRICKS_TREE_ROOT in Bricks​ 2.x

When rearranging a list of entity view render arrays into layouts, a list of parents are kept and those parents are nonnegative integers so the root is an index which can't occur otherwise.

2 uses of BRICKS_TREE_ROOT
_bricks_nested_get_new_elements in ./bricks.module
_bricks_nest_items in ./bricks.module
Helper function: converts element's items to a tree structure.

File

./bricks.module, line 14

Code

const BRICKS_TREE_ROOT = -1;