public function OrderItemInlineForm::getEntityTypeLabels in Commerce Core 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
- modules/
order/ src/ Form/ OrderItemInlineForm.php, line 17
Class
- OrderItemInlineForm
- Defines the inline form for order items.
Namespace
Drupal\commerce_order\FormCode
public function getEntityTypeLabels() {
$labels = [
'singular' => $this
->t('order item'),
'plural' => $this
->t('order items'),
];
return $labels;
}