public function getPath()
{
extract($this->_dataVars());
$identifier = $this->parseIdentifier($this->args[1]);
$id = $this->_getNodeId($class, $identifier);
$nodes = $this->Acl->{$class}->find('path', ['for' => $id]);
if (empty($nodes) || $nodes->count() === 0) {
$this->error(__d('cake_acl', "Supplied Node {0} not found", [$this->args[1]]), __d('cake_acl', 'No tree returned.'));
}
$this->out(__d('cake_acl', 'Path:'));
$this->hr();
$rows = $nodes->hydrate(false)->toArray();
for ($i = 0, $len = count($rows); $i < $len; $i++) {
$this->_outputNode($class, $rows[$i], $i);
}
}