public function ShipmentInlineForm::getEntityTypeLabels in Commerce Shipping 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/ ShipmentInlineForm.php, line 20
Class
- ShipmentInlineForm
- Defines the inline form for shipments.
Namespace
Drupal\commerce_shipping\FormCode
public function getEntityTypeLabels() {
return [
'singular' => new TranslatableMarkup('shipment'),
'plural' => new TranslatableMarkup('shipments'),
];
}