In Magento 1.x versions we have the function called getOrderUrl()
in Toolbar.php whereas in Magento 2, I couldn't found the same function.
My question here is, How can I get the same function? So that I can add few more sort options in toolbar area.
In Magento 1.x versions,
<option value="<?php echo $this->getOrderUrl('price', 'asc') ?>"<?php if($this->isOrderCurrent('price') && $this->getCurrentDirection() == 'asc'): ?> selected=”selected”<?php endif; ?>>Price : Low To High</option>
. Here getOrderUrl will be generated in value attribute.
I want to generate the getOrderUrl
in Magento 2.
It would be appreciated someone provide solution.