public function PriceListItemInlineForm::getEntityTypeLabels in Commerce Pricelist 8
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/ PriceListItemInlineForm.php, line 71
Class
- PriceListItemInlineForm
- Defines the inline form for product variations.
Namespace
Drupal\commerce_pricelist\FormCode
public function getEntityTypeLabels() {
$labels = [
'singular' => t('price list item'),
'plural' => t('price list items'),
];
return $labels;
}