public function InvoiceItemInlineForm::getEntityTypeLabels in Commerce Invoice 8.2
Gets the entity type labels (singular, plural).
@todo Remove when #1850080 lands and IEF starts requiring Drupal 8.1.x
Return value
array An array with two values:
- singular: The lowercase singular label.
- plural: The lowercase plural label.
Overrides EntityInlineForm::getEntityTypeLabels
File
- src/
Form/ InvoiceItemInlineForm.php, line 15
Class
- InvoiceItemInlineForm
- Defines the inline form for invoice items.
Namespace
Drupal\commerce_invoice\FormCode
public function getEntityTypeLabels() {
return [
'singular' => $this
->t('invoice item'),
'plural' => $this
->t('invoice items'),
];
}