Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
api-functional
_files
Magento
TestModuleGraphQlQueryExtension
Model
Resolver
IntegerList.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\TestModuleGraphQlQueryExtension\Model\Resolver
;
9
10
use
Magento\Framework\GraphQl\Schema\Type\ResolveInfo
;
11
use
Magento\Framework\GraphQl\Config\Element\Field
;
12
use
Magento\Framework\GraphQl\Query\ResolverInterface
;
13
17
class
IntegerList
implements
ResolverInterface
18
{
22
public
function
resolve
(
23
Field
$field,
24
$context,
25
ResolveInfo
$info
,
26
array
$value
=
null
,
27
array $args =
null
28
) {
29
if
(!isset(
$value
[
'item_id'
])) {
30
return
null
;
31
}
32
33
$itemId =
$value
[
'item_id'
];
34
35
$resultData = [$itemId + 1, $itemId + 2, $itemId + 3];
36
return
$resultData;
37
}
38
}
Magento\Framework\GraphQl\Query\ResolverInterface
Definition:
ResolverInterface.php:18
Magento\Framework\GraphQl\Schema\Type\ResolveInfo
Definition:
ResolveInfo.php:13
Magento\Framework\GraphQl\Config\Element\Field
Definition:
Field.php:15
$value
$value
Definition:
gender.phtml:16
Magento\TestModuleGraphQlQueryExtension\Model\Resolver\IntegerList\resolve
resolve(Field $field, $context, ResolveInfo $info, array $value=null, array $args=null)
Definition:
IntegerList.php:22
Magento\TestModuleGraphQlQueryExtension\Model\Resolver
Definition:
IntegerList.php:8
$info
foreach( $_productCollection as $_product)() ?>" class $info
Definition:
listing.phtml:52
Magento\TestModuleGraphQlQueryExtension\Model\Resolver\IntegerList
Definition:
IntegerList.php:17