EntityViewDisplayEditForm::getFieldLabelOptions

protected EntityViewDisplayEditForm::getFieldLabelOptions()

Returns an array of visibility options for field labels.

Return value

array An array of visibility options.

File

core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 151

Class

EntityViewDisplayEditForm
Edit form for the EntityViewDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function getFieldLabelOptions() {
  return array(
    'above' => $this->t('Above'),
    'inline' => $this->t('Inline'),
    'hidden' => '- ' . $this->t('Hidden') . ' -',
    'visually_hidden' => '- ' . $this->t('Visually Hidden') . ' -',
  );
}
doc_Drupal
2016-10-29 09:09:01
Comments
Leave a Comment

Please login to continue.