public function EckInlineEntityFormController::labels in Entity Construction Kit (ECK) 7.3
Same name and namespace in other branches
- 7.2 includes/eck.inline_entity_form.inc \EckInlineEntityFormController::labels()
Overrides EntityInlineEntityFormController::labels().
Overrides EntityInlineEntityFormController::labels
File
- includes/
eck.inline_entity_form.inc, line 13 - Defines the inline entity form controller for ECK Entities.
Class
- EckInlineEntityFormController
- @file Defines the inline entity form controller for ECK Entities.
Code
public function labels() {
$entity_info = entity_get_info($this->entityType);
$labels = array(
'singular' => $entity_info['label'],
'plural' => $entity_info['label'],
);
// The admin has specified the exact labels that should be used.
if ($this->settings['override_labels']) {
$labels = array(
'singular' => $this->settings['label_singular'],
'plural' => $this->settings['label_plural'],
);
}
return $labels;
}