![]() 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/old/vendor/amasty/shopby/Plugin/Theme/Block/Html/Header/ |
<?php /** * @author Amasty Team * @copyright Copyright (c) Amasty (https://www.amasty.com) * @package Improved Layered Navigation Base for Magento 2 */ namespace Amasty\Shopby\Plugin\Theme\Block\Html\Header; class Logo { public const SHOPBY_ROUTE_NAME = 'amshopby'; public const BRAND_ROUTE_NAME = 'ambrand'; /** * @var \Magento\Framework\App\Request\Http */ private $request; public function __construct(\Magento\Framework\App\Request\Http $request) { $this->request = $request; } /** * @param \Magento\Theme\Block\Html\Header\Logo $subject * @param \Closure $closure * @return bool * @SuppressWarnings(PHPMD.UnusedFormatParameter) */ public function aroundIsHomePage(\Magento\Theme\Block\Html\Header\Logo $subject, \Closure $closure) { if (in_array($this->request->getRouteName(), [self::SHOPBY_ROUTE_NAME, self::BRAND_ROUTE_NAME])) { return false; } return $closure(); } }