public function ProductVariationContext::setSampleEntityGenerator in Commerce Core 8.2
Set the sample entity generator.
Parameters
\Drupal\layout_builder\Entity\SampleEntityGeneratorInterface $sample_entity_generator: The sample entity generator.
File
- modules/
product/ src/ ContextProvider/ ProductVariationContext.php, line 69
Class
- ProductVariationContext
- Provides a product variation context.
Namespace
Drupal\commerce_product\ContextProviderCode
public function setSampleEntityGenerator(SampleEntityGeneratorInterface $sample_entity_generator) {
$this->sampleEntityGenerator = $sample_entity_generator;
}