Skip to content

node() method

Rieks Visser edited this page Sep 5, 2017 · 1 revision

The node() method returns a single container with the data from a path.

<?php
/** @var Mediact\DataContainer\DataContainer $container */
$foo = $container->node('categories.foo');
var_dump($foo->get('name')); // Foo
Clone this wiki locally