public function grouptreeGetChildsByIdAction()
{
$nodeId = $this->getParam("node");
$list = new Object\Classificationstore\GroupConfig\Listing();
$list->setCondition("parentId = ?", $nodeId);
$list = $list->load();
$contents = [];
/** @var $item Object\Classificationstore\GroupConfig */
foreach ($list as $item) {
$hasChilds = $item->hasChilds();
$itemConfig = ["id" => $item->getId(), "text" => "text 1-" . $item->getName(), "leaf" => !$hasChilds, "iconCls" => $item->getLevel() < 2 ? "pimcore_icon_Classificationstore_icon_group" : "pimcore_icon_Classificationstore_icon_subgroup"];
$contents[] = $itemConfig;
}
$this->_helper->json($contents);
}