You are here

public function ProductBundleItem::getTitle in Commerce Product Bundle 8

Gets the product bundle item title.

Return value

string Title of the product bundle item.

Overrides BundleItemInterface::getTitle

File

src/Entity/ProductBundleItem.php, line 145

Class

ProductBundleItem
Defines the product bundle item entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

public function getTitle() {
  return $this
    ->get('title')->value;
}