function FieldConfig::getDisplayOptions

Same name in other branches
  1. 9 core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::getDisplayOptions()
  2. 8.9.x core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::getDisplayOptions()
  3. 11.x core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::getDisplayOptions()

Overrides FieldDefinitionInterface::getDisplayOptions

File

core/modules/field/src/Entity/FieldConfig.php, line 337

Class

FieldConfig
Defines the Field entity.

Namespace

Drupal\field\Entity

Code

public function getDisplayOptions($display_context) {
    // Hide configurable fields by default.
    return [
        'region' => 'hidden',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.