modules/acm_sku/src/ProductInfoHelper.php
public function getValue(SKUInterface $sku, string $field_code, string $context, $value) {
    $event = new ProductInfoRequestedEvent($sku, $field_code, $context, $value);
    $this->eventDispatcher->dispatch(ProductInfoRequestedEvents::EVENT_NAME, $event);
    return $event->getValue();
  }
public function getValue(SKUInterface $sku, string $field_code, string $context, $value) {
    $event = new ProductInfoRequestedEvent($sku, $field_code, $context, $value);
    $this->eventDispatcher->dispatch(ProductInfoRequestedEvents::EVENT_NAME, $event);
    return $event->getValue();
  }
public function getValue ( SKUInterface $ sku , string $ field_code , string $ context , $ value ) { $ event = new ProductInfoRequestedEvent ( $ sku , $ field_code , $ context , $ value ) ; $ this -> eventDispatcher -> dispatch ( ProductInfoRequestedEvents :: EVENT_NAME , $ event ) ; return $ event -> getValue ( ) ; }
Dispatch event and get updated value for specific field and context.

@param \Drupal\acm_sku\Entity\SKUInterface $sku
SKU Entity.
@param string $field_code
Field code, title/description/etc.
@param string $context
Context to apply rules plp/pdp/basket.
@param mixed $value
Default value.

@return mixed
Processed value.
Dispatch event and get updated value for specific field and context .