6 declare(strict_types=1);
27 private $bundleOptionCollection;
32 private $valueFactory;
37 private $metadataPool;
49 $this->bundleOptionCollection = $bundleOptionCollection;
50 $this->valueFactory = $valueFactory;
51 $this->metadataPool = $metadataPool;
61 $linkField = $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField();
63 || !isset(
$value[$linkField])
69 return $this->valueFactory->create(
$result);
72 $this->bundleOptionCollection->addParentFilterData(
79 return $this->bundleOptionCollection->getOptionsByParentId((
int)
$value[$linkField]);
82 return $this->valueFactory->create(
$result);
__construct(Collection $bundleOptionCollection, ValueFactory $valueFactory, MetadataPool $metadataPool)
resolve(Field $field, $context, ResolveInfo $info, array $value=null, array $args=null)
foreach( $_productCollection as $_product)() ?>" class $info