private setSortParams ( Magento\Catalog\Model\Layer $layer, Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection $collection ) | ||
$layer | Magento\Catalog\Model\Layer | Catalog / search layer. |
$collection | Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection | Product collection. |