setHideSortings example



        if (isset($data['__category_hidetop'])) {
            $category->setDisplayInNavigation((bool) !$data['__category_hidetop']);
        }

        if (isset($data['__category_customer_groups'])) {
            $categoryCustomerGroups = array_map('\intval', explode(',', $data['__category_customer_groups']));
            $category->setBlockedCustomerGroupIds($categoryCustomerGroups);
        }

        $category->setHideSortings((bool) $data['__category_hide_sortings']);
    }
}
Home | Imprint | This part of the site doesn't use cookies.