You are here

public function ProductBundleItem::setTitle in Commerce Product Bundle 8

Sets the product bundle item title.

Parameters

string $title: The product bundle item title.

Return value

\Drupal\commerce_product_bundle\Entity\BundleItemInterface The called product bundle item entity.

Overrides BundleItemInterface::setTitle

File

src/Entity/ProductBundleItem.php, line 152

Class

ProductBundleItem
Defines the product bundle item entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

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