Documentation

Nav
in package

Table of Contents

Methods

walk()  : string|null
Visit all items in the nav-tree.

Methods

walk()

Visit all items in the nav-tree.

public static walk(array<string|int, mixed> &$items, callable $callback) : string|null
Parameters
$items : array<string|int, mixed>
$callback : callable

function(array &$item): mixed To short-circuit execution, the callback should return a non-null value.

Return values
string|null

Return NULL by default. If the walk was short-circuited, then return that value.


        
On this page

Search results