public function getTabParentOptions(): array
    {
        $columns[] = 'tl_content.type = ?';
        $columns[] = 'tl_content.pid = ?';
        $columns[] = 'tl_content.ptable = ?';

        $values[] = 'bs_tab_start';
        $values[] = CURRENT_ID;
        $values[] = $GLOBALS['TL_DCA']['tl_content']['config']['ptable'];

        $collection = $this->repository->findBy($columns, $values);
        $options    = [];

        if ($collection) {
            foreach ($collection as $model) {
                $options[$model->id] = sprintf(
                    '%s [%s]',
                    $model->bs_tab_name,
                    $model->id
                );
            }
        }

        return $options;
    }
public function getTabParentOptions(): array
    {
        $columns[] = 'tl_content.type = ?';
        $columns[] = 'tl_content.pid = ?';
        $columns[] = 'tl_content.ptable = ?';

        $values[] = 'bs_tab_start';
        $values[] = CURRENT_ID;
        $values[] = $GLOBALS['TL_DCA']['tl_content']['config']['ptable'];

        $collection = $this->repository->findBy($columns, $values);
        $options    = [];

        if ($collection) {
            foreach ($collection as $model) {
                $options[$model->id] = sprintf(
                    '%s [%s]',
                    $model->bs_tab_name,
                    $model->id
                );
            }
        }

        return $options;
    }
public function getTabParentOptions ( ) : array { $ columns [ ] = 'tl_content.type = ?' ; $ columns [ ] = 'tl_content.pid = ?' ; $ columns [ ] = 'tl_content.ptable = ?' ; $ values [ ] = 'bs_tab_start' ; $ values [ ] = CURRENT_ID ; $ values [ ] = $ GLOBALS [ 'TL_DCA' ] [ 'tl_content' ] [ 'config' ] [ 'ptable' ] ; $ collection = $ this -> repository -> findBy ( $ columns , $ values ) ; $ options = [ ] ; if ( $ collection ) { foreach ( $ collection as $ model ) { $ options [ $ model -> id ] = sprintf ( '%s [%s]' , $ model -> bs_tab_name , $ model -> id ) ; } } return $ options ; }
Get all tab parent options.

@return array

@SuppressWarnings(PHPMD.Superglobals)
Get all tab parent options .