public function InvoiceInterface::hasItem in Commerce Invoice 8.2
Checks whether the invoice has a given invoice item.
Parameters
\Drupal\commerce_invoice\Entity\InvoiceItemInterface $invoice_item: The invoice item.
Return value
bool TRUE if the invoice item was found, FALSE otherwise.
1 method overrides InvoiceInterface::hasItem()
- Invoice::hasItem in src/
Entity/ Invoice.php - Checks whether the invoice has a given invoice item.
File
- src/
Entity/ InvoiceInterface.php, line 184
Class
- InvoiceInterface
- Defines the interface for invoices.
Namespace
Drupal\commerce_invoice\EntityCode
public function hasItem(InvoiceItemInterface $invoice_item);