![]() 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/magento/module-catalog/Ui/Component/UrlInput/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\Catalog\Ui\Component\UrlInput; use Magento\Framework\UrlInterface; /** * Returns configuration for product Url Input type */ class Product implements \Magento\Ui\Model\UrlInput\ConfigInterface { /** * @var \Magento\Framework\UrlInterface */ private $urlBuilder; /** * Product constructor. * @param UrlInterface $urlBuilder */ public function __construct(UrlInterface $urlBuilder) { $this->urlBuilder = $urlBuilder; } /** * @inheritdoc */ public function getConfig(): array { return [ 'label' => __('Product'), 'component' => 'Magento_Catalog/js/components/product-ui-select', 'disableLabel' => true, 'filterOptions' => true, 'searchOptions' => true, 'chipsEnabled' => true, 'levelsVisibility' => '1', 'options' => [], 'sortOrder' => 25, 'multiple' => false, 'closeBtn' => true, 'template' => 'ui/grid/filters/elements/ui-select', 'searchUrl' => $this->urlBuilder->getUrl('catalog/product/search'), 'filterPlaceholder' => __('Product Name or SKU'), 'filterRateLimitMethod' => 'notifyWhenChangesStop', 'isDisplayEmptyPlaceholder' => true, 'emptyOptionsHtml' => __('Start typing to find products'), 'missingValuePlaceholder' => __('Product with ID: %s doesn\'t exist'), 'isDisplayMissingValuePlaceholder' => true, 'isRemoveSelectedIcon' => true, 'validationUrl' => $this->urlBuilder->getUrl('catalog/product/getSelected'), ]; } }