/** * Get parents. * * @param int $smapID Section ID. * @return array */ public function getParents($smapID) { $node = $this->tree->getNodeById($smapID); $result = []; if (!is_null($node)) { $result = $this->buildPagesMap(array_reverse(array_keys($node->getParents()->asList(false)))); } return $result; }