/**
  * Gets the node array. If the TCA configuration has defined items,
  * they are added to rootlevel on top of the tree
  *
  * @param \TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode $node
  * @return array
  */
 protected function getNodeArray(\TYPO3\CMS\Core\Tree\TableConfiguration\DatabaseTreeNode $node)
 {
     $nodeArray = parent::getNodeArray($node);
     $nodeArray = array_merge($nodeArray, array('expanded' => $node->getExpanded(), 'expandable' => $node->hasChildNodes(), 'checked' => $node->getSelected()));
     if (!$node->getSelectable()) {
         unset($nodeArray['checked']);
     }
     return $nodeArray;
 }
 /**
  * Gets the node array. If the TCA configuration has defined items,
  * they are added to rootlevel on top of the tree
  *
  * @param \TYPO3\CMS\Backend\Tree\TreeRepresentationNode|DatabaseTreeNode $node
  * @return array
  */
 protected function getNodeArray(\TYPO3\CMS\Backend\Tree\TreeRepresentationNode $node)
 {
     $nodeArray = parent::getNodeArray($node);
     $nodeArray = array_merge($nodeArray, array('expanded' => $node->getExpanded(), 'expandable' => $node->hasChildNodes(), 'checked' => $node->getSelected()));
     if (!$node->getSelectable()) {
         unset($nodeArray['checked']);
     }
     return $nodeArray;
 }