private function updateSubcolumnsDefinition($gridId, $type)
    {
        $grid = Factory::createById($gridId);

        $GLOBALS['TL_SUBCL'][static::$name]['sets'][$type] = $this->prepareContainer($grid);

        if ($grid->getRowClass()) {
            $GLOBALS['TL_SUBCL'][static::$name]['scclass'] = 'row ' . $grid->getRowClass();
        } else {
            $GLOBALS['TL_SUBCL'][static::$name]['scclass'] = 'row';
        }
    }
private function updateSubcolumnsDefinition($gridId, $type)
    {
        $grid = Factory::createById($gridId);

        $GLOBALS['TL_SUBCL'][static::$name]['sets'][$type] = $this->prepareContainer($grid);

        if ($grid->getRowClass()) {
            $GLOBALS['TL_SUBCL'][static::$name]['scclass'] = 'row ' . $grid->getRowClass();
        } else {
            $GLOBALS['TL_SUBCL'][static::$name]['scclass'] = 'row';
        }
    }
private function updateSubcolumnsDefinition ( $ gridId , $ type ) { $ grid = Factory :: createById ( $ gridId ) ; $ GLOBALS [ 'TL_SUBCL' ] [ static :: $ name ] [ 'sets' ] [ $ type ] = $ this -> prepareContainer ( $ grid ) ; if ( $ grid -> getRowClass ( ) ) { $ GLOBALS [ 'TL_SUBCL' ] [ static :: $ name ] [ 'scclass' ] = 'row ' . $ grid -> getRowClass ( ) ; } else { $ GLOBALS [ 'TL_SUBCL' ] [ static :: $ name ] [ 'scclass' ] = 'row' ; } }
Update the subcolumns definition.

@param int    $gridId The grid id.
@param string $type   The subcolumns type.

@return void
@SuppressWarnings(PHPMD.Superglobals)
Update the subcolumns definition .