Jackalope\ObjectManager::getNodePath PHP Method

getNodePath() protected method

Get the node path for a property, and the property name
protected getNodePath ( string $absPath ) : array
$absPath string
return array with name, node path
    protected function getNodePath($absPath)
    {
        $absPath = PathHelper::normalizePath($absPath);
        $name = PathHelper::getNodeName($absPath);
        //the property name
        $nodep = PathHelper::getParentPath($absPath, 0, strrpos($absPath, '/') + 1);
        //the node this property should be in
        return array($name, $nodep);
    }