Baum\Move::resolveNode PHP Méthode

resolveNode() protected méthode

Resolves suplied node. Basically returns the node unchanged if supplied parameter is an instance of \Baum\Node. Otherwise it will try to find the node in the database.
protected resolveNode ( $node ) : Node
Résultat Node
    protected function resolveNode($node)
    {
        if ($node instanceof \Baum\Node) {
            return $node->reload();
        }
        return $this->node->newNestedSetQuery()->find($node);
    }