Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
IntegerList.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
13 
18 {
22  public function resolve(
23  Field $field,
24  $context,
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 }
$value
Definition: gender.phtml:16
resolve(Field $field, $context, ResolveInfo $info, array $value=null, array $args=null)
Definition: IntegerList.php:22
foreach( $_productCollection as $_product)() ?>" class $info
Definition: listing.phtml:52