Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DynamicPrice.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
14 
19 {
23  public function resolve(
24  Field $field,
25  $context,
27  array $value = null,
28  array $args = null
29  ) {
30  $result = null;
31  if ($value['type_id'] === Bundle::TYPE_CODE) {
32  $result = isset($value['price_type']) ? !$value['price_type'] : null;
33  }
34 
35  return $result;
36  }
37 }
$value
Definition: gender.phtml:16
resolve(Field $field, $context, ResolveInfo $info, array $value=null, array $args=null)
foreach( $_productCollection as $_product)() ?>" class $info
Definition: listing.phtml:52