You are here

public function ProductVariationInlineForm::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/product/src/Form/ProductVariationInlineForm.php, line 24

Class

ProductVariationInlineForm
Defines the inline form for product variations.

Namespace

Drupal\commerce_product\Form

Code

public function getEntityTypeLabels() {
  $labels = [
    'singular' => $this
      ->t('variation'),
    'plural' => $this
      ->t('variations'),
  ];
  return $labels;
}