You are here

public function ProductBundle::setTitle in Commerce Product Bundle 8

Sets the product bundle title.

Parameters

string $title: The product bundle title.

Return value

\Drupal\commerce_product_bundle\Entity\BundleInterface The called product bundle entity.

Overrides BundleInterface::setTitle

File

src/Entity/ProductBundle.php, line 96

Class

ProductBundle
Defines the product bundle entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

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