public function NodeInlineForm::getEntityTypeLabels in Inline Entity Form 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/ NodeInlineForm.php, line 18
Class
- NodeInlineForm
- Node inline form handler.
Namespace
Drupal\inline_entity_form\FormCode
public function getEntityTypeLabels() {
$labels = [
'singular' => $this
->t('node'),
'plural' => $this
->t('nodes'),
];
return $labels;
}