Classes/Utility/ColumnLayoutUtility.php
public static function getSizesFor(string $size, string $type, int $pageUid): array
    {
        $settings = ColumnLayoutUtility::getColumnLayoutSettings($pageUid);

        if (!array_key_exists($size . '.', $settings['sizes.'])) {
            throw new Exception(sprintf('The given size "%s" is not defined in the gridsystem', $size), 1520324173);
        }

        if (!array_key_exists($type, $settings['sizes.'][$size . '.'])) {
            throw new Exception(sprintf('The given type "%s" does not exist for size "%s"', $type, $size), 1520324252);
        }

        return ColumnLayoutUtility::processColumnSizes($settings['sizes.'][$size . '.'][$type], $settings['columnsCount']);
    }
public static function getSizesFor(string $size, string $type, int $pageUid): array
    {
        $settings = ColumnLayoutUtility::getColumnLayoutSettings($pageUid);

        if (!array_key_exists($size . '.', $settings['sizes.'])) {
            throw new Exception(sprintf('The given size "%s" is not defined in the gridsystem', $size), 1520324173);
        }

        if (!array_key_exists($type, $settings['sizes.'][$size . '.'])) {
            throw new Exception(sprintf('The given type "%s" does not exist for size "%s"', $type, $size), 1520324252);
        }

        return ColumnLayoutUtility::processColumnSizes($settings['sizes.'][$size . '.'][$type], $settings['columnsCount']);
    }
public static function getSizesFor ( string $ size , string $ type , int $ pageUid ) : array { $ settings = ColumnLayoutUtility :: getColumnLayoutSettings ( $ pageUid ) ; if ( ! array_key_exists ( $ size . '.' , $ settings [ 'sizes.' ] ) ) { throw new Exception ( sprintf ( 'The given size "%s" is not defined in the gridsystem' , $ size ) , 1520324173 ) ; } if ( ! array_key_exists ( $ type , $ settings [ 'sizes.' ] [ $ size . '.' ] ) ) { throw new Exception ( sprintf ( 'The given type "%s" does not exist for size "%s"' , $ type , $ size ) , 1520324252 ) ; } return ColumnLayoutUtility :: processColumnSizes ( $ settings [ 'sizes.' ] [ $ size . '.' ] [ $ type ] , $ settings [ 'columnsCount' ] ) ; }
Calculates the column sizes for the given size and the given size type

@param string $size name of the sizes identifier (e.g. large, medium)
@param string $type size type (e.g. columns, offset, order)
@param int $pageUid the page which's TSConfig should be used
@return array of column sizes
@throws Exception when the given size or type is not defined
Calculates the column sizes for the given size and the given size type