From 9939e8b90df87bbb1df45a704ce9a3d90a5d313b Mon Sep 17 00:00:00 2001 From: Raul E Watson Date: Wed, 12 Jun 2019 01:13:03 +0100 Subject: [PATCH 1/2] #16 Add search filter for the isolated attribute --- .../Listing/Columns/Isolated/Options.php | 26 +++++++++++++++++++ .../adobe_stock_images_listing.xml | 8 ++++++ 2 files changed, 34 insertions(+) create mode 100644 AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php diff --git a/AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php b/AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php new file mode 100644 index 000000000000..7191247e4aaf --- /dev/null +++ b/AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php @@ -0,0 +1,26 @@ + 1, 'label' => __('Yes')], ['value' => 0, 'label' => __('No')]]; + } +} diff --git a/AdobeStockImageAdminUi/view/adminhtml/ui_component/adobe_stock_images_listing.xml b/AdobeStockImageAdminUi/view/adminhtml/ui_component/adobe_stock_images_listing.xml index 04bf34f5db74..8724056772ac 100644 --- a/AdobeStockImageAdminUi/view/adminhtml/ui_component/adobe_stock_images_listing.xml +++ b/AdobeStockImageAdminUi/view/adminhtml/ui_component/adobe_stock_images_listing.xml @@ -61,6 +61,14 @@ premium_price_filter + + + Select... + + + isolated_filter + + From 084dbc3388415042b64220e4b6b305f42b5b327a Mon Sep 17 00:00:00 2001 From: Sergii Ivashchenko Date: Wed, 12 Jun 2019 10:56:42 +0100 Subject: [PATCH 2/2] magento/adobe-stock-integration#79: Removed unnecessary spaces and enforced strict types --- .../Ui/Component/Listing/Columns/Isolated/Options.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php b/AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php index 7191247e4aaf..5a15f1bc6f84 100644 --- a/AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php +++ b/AdobeStockImageAdminUi/Ui/Component/Listing/Columns/Isolated/Options.php @@ -3,7 +3,6 @@ * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ - declare(strict_types=1); namespace Magento\AdobeStockImageAdminUi\Ui\Component\Listing\Columns\Isolated; @@ -13,13 +12,12 @@ */ class Options implements \Magento\Framework\Data\OptionSourceInterface { - /** * Get options * * @return array */ - public function toOptionArray() + public function toOptionArray(): array { return [['value' => 1, 'label' => __('Yes')], ['value' => 0, 'label' => __('No')]]; }