Back to PhocacartRenderFront class

Method getLayoutType

public static
getLayoutType
(mixed $layoutType)

Method getLayoutType - Source code

public static function getLayoutType($layoutType)
{
    if ($layoutType == 'list') {
        return 'list';
    } else {
        if ($layoutType == 'gridlist') {
            return 'gridlist';
        } else {
            // Else is important, don't show any other types
            return 'grid';
        }
    }
}