<?php
/**
 * Magetop
 *
 * @category  Magetop Extensions
 * @package   Magetop_Quotesystem
 * @author    Magetop Developer
 * @copyright Copyright (c) Magetop (https://www.magetop.com)
 * @license   https://www.magetop.com/license.html
 */
namespace Magetop\Quotesystem\Plugin\CatalogSearch\Model\Layer\Category;

class ItemCollectionProvider
{
    /**
     * Get Collection
     *
     * @param \Magento\CatalogSearch\Model\Layer\Category\ItemCollectionProvider    $subject
     * @param \Magento\Framework\Controller\Result\Redirect                         $result
     */
    public function afterGetCollection(
        \Magento\CatalogSearch\Model\Layer\Category\ItemCollectionProvider $subject,
        $result
    ) {
        $collection = $result->addAttributeToSelect('quote_status');
        return $collection;
    }
}
