You are here

public function OrderItem::setTitle in Commerce Core 8.2

Sets the order item title.

Parameters

string $title: The order item title.

Return value

$this

Overrides OrderItemInterface::setTitle

File

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

Class

OrderItem
Defines the order item entity class.

Namespace

Drupal\commerce_order\Entity

Code

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