You are here

public function OrderItem::getTitle in Commerce Core 8.2

Gets the order item title.

Return value

string The order item title

Overrides OrderItemInterface::getTitle

File

modules/order/src/Entity/OrderItem.php, line 91

Class

OrderItem
Defines the order item entity class.

Namespace

Drupal\commerce_order\Entity

Code

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