Classes/Service/Flexform.php
public function buildMenu($config)
    {
        $rootNodes = $this->queryForChildrenOf('NE');

        $options = [['', '']];
        while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($rootNodes)) {
            $optionTitle = $row['descr'];
            $optionValue = $row['ppn'];
            $options[] = [$optionTitle , $optionValue];
        }

        $config['items'] = array_merge($config['items'], $options);
        return $config;
    }
public function buildMenu($config)
    {
        $rootNodes = $this->queryForChildrenOf('NE');

        $options = [['', '']];
        while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($rootNodes)) {
            $optionTitle = $row['descr'];
            $optionValue = $row['ppn'];
            $options[] = [$optionTitle , $optionValue];
        }

        $config['items'] = array_merge($config['items'], $options);
        return $config;
    }
public function buildMenu ( $ config ) { $ rootNodes = $ this -> queryForChildrenOf ( 'NE' ) ; $ options = [ [ '' , '' ] ] ; while ( $ row = $ GLOBALS [ 'TYPO3_DB' ] -> sql_fetch_assoc ( $ rootNodes ) ) { $ optionTitle = $ row [ 'descr' ] ; $ optionValue = $ row [ 'ppn' ] ; $ options [ ] = [ $ optionTitle , $ optionValue ] ; } $ config [ 'items' ] = array_merge ( $ config [ 'items' ] , $ options ) ; return $ config ; }
Called from Flexform to provide menu items with Neuerwerbungen subjects.

@param array $config
@return array
Called from Flexform to provide menu items with Neuerwerbungen subjects .