Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/customer/includes/commerce_customer.entity.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class CommerceCustomerProfile extends Entity {
return "Customer Profile (uid {$this->uid})";
}

public function bundle() {
return $this->type;
}

public function uri() {
if (empty($this->id)) {
return array();
Expand Down
4 changes: 4 additions & 0 deletions modules/line_item/includes/commerce_line_item.entity.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class CommerceLineItem extends Entity {
return $this->line_item_id;
}

public function bundle() {
return $this->type;
}

public function uri() {
if (empty($this->id)) {
return array();
Expand Down
4 changes: 4 additions & 0 deletions modules/order/includes/commerce_order.entity.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class CommerceOrder extends Entity {
return t('Order ') . $this->id();
}

public function bundle() {
return $this->type;
}

public function uri() {
if (empty($this->id)) {
return array();
Expand Down
4 changes: 4 additions & 0 deletions modules/product/includes/commerce_product.entity.inc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class CommerceProduct extends Entity {
return $this->title;
}

public function bundle() {
return $this->type;
}

public function uri() {
if (empty($this->id)) {
return array();
Expand Down