In your custom preprocess you have to do product_variation_entity->getProd...

Contribution Date
Technology
Contribution Project
Contribution Details

In your custom preprocess you have to do product_variation_entity->getProduct() (see https://github.com/drupalcommerce/commerce/blob/8.x-2.x/modules/product/...).

More information regarding Twig debugging - https://www.drupal.org/docs/8/theming/twig/debugging-twig-templates

Contribution Author
Files count
0
Patches count
0