Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/cartforge.co/app/code/Amasty/MWishlist/Model/ResourceModel/Template/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/cartforge.co/app/code/Amasty/MWishlist/Model/ResourceModel/Template/Collection.php
<?php

declare(strict_types=1);

/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Multiple Wishlist for Magento 2
 */

namespace Amasty\MWishlist\Model\ResourceModel\Template;

class Collection extends \Magento\Email\Model\ResourceModel\Template\Collection
{
    public function toOptionArray(): array
    {
        $this->filterByTemplateCode(['eq' => 'mwishlist_price_alert_notifications_template']);

        return $this->_toOptionArray('template_id', 'template_code');
    }

    public function filterByTemplateCode(array $condition): void
    {
        $this->addFieldToFilter('orig_template_code', $condition);
    }
}

Spamworldpro Mini