Neos\Flow\I18n\Cldr\CldrModel::findNodesWithinPath PHP Метод

findNodesWithinPath() публичный Метод

Returns all nodes with given name found within given path
public findNodesWithinPath ( string $path, string $nodeName ) : mixed
$path string A path to search in
$nodeName string A name of the nodes to return
Результат mixed String with desired element, or FALSE on failure
    public function findNodesWithinPath($path, $nodeName)
    {
        $data = $this->getRawArray($path);
        if ($data === false) {
            return false;
        }
        $filteredData = [];
        foreach ($data as $nodeString => $children) {
            if ($this->getNodeName($nodeString) === $nodeName) {
                $filteredData[$nodeString] = $children;
            }
        }
        return $filteredData;
    }