You are here

public function Product::setTitle in Commerce Core 8.2

Sets the product title.

Parameters

string $title: The product title.

Return value

$this

Overrides ProductInterface::setTitle

File

modules/product/src/Entity/Product.php, line 106

Class

Product
Defines the product entity class.

Namespace

Drupal\commerce_product\Entity

Code

public function setTitle($title) {
  $this
    ->set('title', $title);
  return $this;
}