protected function EntityViewDisplayEditForm::getFieldLabelOptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php \Drupal\field_ui\Form\EntityViewDisplayEditForm::getFieldLabelOptions()
Returns an array of visibility options for field labels.
Return value
array An array of visibility options.
1 call to EntityViewDisplayEditForm::getFieldLabelOptions()
- EntityViewDisplayEditForm::buildFieldRow in core/
modules/ field_ui/ src/ Form/ EntityViewDisplayEditForm.php - Builds the table row structure for a single field.
File
- core/
modules/ field_ui/ src/ Form/ EntityViewDisplayEditForm.php, line 156
Class
- EntityViewDisplayEditForm
- Edit form for the EntityViewDisplay entity type.
Namespace
Drupal\field_ui\FormCode
protected function getFieldLabelOptions() {
return [
'above' => $this
->t('Above'),
'inline' => $this
->t('Inline'),
'hidden' => '- ' . $this
->t('Hidden') . ' -',
'visually_hidden' => '- ' . $this
->t('Visually Hidden') . ' -',
];
}