src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
protected function evalFlagGroupingLength($config, $flag)
    {
        if ((1 === $flag) || (2 === $flag)) {
            $config->setGroupingLength(1);
        } elseif ((3 === $flag) || (4 === $flag)) {
            $config->setGroupingLength(2);
        }
    }
protected function evalFlagGroupingLength($config, $flag)
    {
        if ((1 === $flag) || (2 === $flag)) {
            $config->setGroupingLength(1);
        } elseif ((3 === $flag) || (4 === $flag)) {
            $config->setGroupingLength(2);
        }
    }
protected function evalFlagGroupingLength ( $ config , $ flag ) { if ( ( 1 === $ flag ) || ( 2 === $ flag ) ) { $ config -> setGroupingLength ( 1 ) ; } elseif ( ( 3 === $ flag ) || ( 4 === $ flag ) ) { $ config -> setGroupingLength ( 2 ) ; } }
Evaluate the contao 2 sorting flag into grouping length.

@param GroupAndSortingInformationInterface $config The property to evaluate the flag for.
@param int                                 $flag   The flag to be evaluated.

@return void
Evaluate the contao 2 sorting flag into grouping length .