<?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\Catalog\Model\Layer\Search;

class ItemCollectionProvider
{

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