public function Product::getTitle in Commerce Core 8.2
Gets the product title.
Return value
string The product title
Overrides ProductInterface::getTitle
File
- modules/
product/ src/ Entity/ Product.php, line 99
Class
- Product
- Defines the product entity class.
Namespace
Drupal\commerce_product\EntityCode
public function getTitle() {
return $this
->get('title')->value;
}