You are here

protected function EntityDisplayFormBase::getExtraFieldVisibilityOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Form/EntityDisplayFormBase.php \Drupal\field_ui\Form\EntityDisplayFormBase::getExtraFieldVisibilityOptions()

Returns an array of visibility options for extra fields.

Return value

array An array of visibility options.

1 call to EntityDisplayFormBase::getExtraFieldVisibilityOptions()
EntityDisplayFormBase::buildExtraFieldRow in core/modules/field_ui/src/Form/EntityDisplayFormBase.php
Builds the table row structure for a single extra field.

File

core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 823
Contains \Drupal\field_ui\Form\EntityDisplayFormBase.

Class

EntityDisplayFormBase
Base class for EntityDisplay edit forms.

Namespace

Drupal\field_ui\Form

Code

protected function getExtraFieldVisibilityOptions() {
  return array(
    'visible' => $this
      ->t('Visible'),
    'hidden' => '- ' . $this
      ->t('Hidden') . ' -',
  );
}