public function ProductVariationType::setGenerateTitle in Commerce Core 8.2
Sets whether the product variation title should be automatically generated.
Parameters
bool $generate_title: Whether the product variation title should be automatically generated.
Return value
$this
Overrides ProductVariationTypeInterface::setGenerateTitle
File
- modules/
product/ src/ Entity/ ProductVariationType.php, line 102
Class
- ProductVariationType
- Defines the product variation type entity class.
Namespace
Drupal\commerce_product\EntityCode
public function setGenerateTitle($generate_title) {
$this->generateTitle = $generate_title;
return $this;
}