function FieldConfig::getDisplayOptions
Same name in other branches
- 9 core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::getDisplayOptions()
- 8.9.x core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::getDisplayOptions()
- 10 core/modules/field/src/Entity/FieldConfig.php \Drupal\field\Entity\FieldConfig::getDisplayOptions()
Overrides FieldDefinitionInterface::getDisplayOptions
File
-
core/
modules/ field/ src/ Entity/ FieldConfig.php, line 344
Class
- FieldConfig
- Defines the Field entity.
Namespace
Drupal\field\EntityCode
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.