How To Grab a List of Nodes

How To Grab a List of Nodes

Code:
/** @var \XF\Repository\Node $nodeRepo */
$nodeRepo = \XF::app()->repository('XF:Node');
$nodeList = $nodeRepo->createNodeTree($nodeRepo->getFullNodeList());

dump($nodeList);

Returns the following information:

Code:
...
You do not have permission to view the full content of this resource. Log in or register now.
Author
LPH
Views
1,825
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from LPH

Top