/**
  * Init the tree data
  *
  * @return void
  */
 public function initializeTreeData()
 {
     parent::initializeTreeData();
     $this->nodeSortValues = array_flip($this->itemWhiteList);
     $this->columnConfiguration = $GLOBALS['TCA'][$this->getTableName()]['columns'][$this->getLookupField()]['config'];
     if (isset($this->columnConfiguration['foreign_table']) && $this->columnConfiguration['foreign_table'] != $this->getTableName()) {
         throw new \InvalidArgumentException('TCA Tree configuration is invalid: tree for different node-Tables is not implemented yet', 1290944650);
     }
     $this->treeData = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Tree\TreeNode::class);
     $this->loadTreeData();
     $this->emitPostProcessTreeDataSignal();
 }
 /**
  * Init the tree data
  *
  * @return void
  */
 public function initializeTreeData()
 {
     parent::initializeTreeData();
     $this->nodeSortValues = array_flip($this->itemWhiteList);
     $this->columnConfiguration = $GLOBALS['TCA'][$this->getTableName()]['columns'][$this->getLookupField()]['config'];
     if (isset($this->columnConfiguration['foreign_table']) && $this->columnConfiguration['foreign_table'] != $this->getTableName()) {
         throw new \InvalidArgumentException('TCA Tree configuration is invalid: tree for different node-Tables is not implemented yet', 1290944650);
     }
     $this->treeData = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Tree\\TreeNode');
     $this->treeData->setId($this->getRootUid());
     $this->treeData->setParentNode(NULL);
     $childNodes = $this->getChildrenOf($this->treeData, 0);
     if ($childNodes !== NULL) {
         $this->treeData->setChildNodes($childNodes);
     }
 }