public function FieldDefinition::isDisplayConfigurable in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/FieldDefinition.php \Drupal\Core\Field\FieldDefinition::isDisplayConfigurable()
- 9 core/lib/Drupal/Core/Field/FieldDefinition.php \Drupal\Core\Field\FieldDefinition::isDisplayConfigurable()
Returns whether the display for the field can be configured.
Parameters
string $display_context: The display context. Either 'view' or 'form'.
Return value
bool TRUE if the display for this field is configurable in the given context. If TRUE, the display options returned by getDisplayOptions() may be overridden via the respective entity display.
Overrides FieldDefinitionInterface::isDisplayConfigurable
See also
\Drupal\Core\Entity\Display\EntityDisplayInterface
File
- core/
lib/ Drupal/ Core/ Field/ FieldDefinition.php, line 126
Class
- FieldDefinition
- A class for defining entity field definitions.
Namespace
Drupal\Core\FieldCode
public function isDisplayConfigurable($display_context) {
return $this->definition['display'][$display_context]['configurable'] ?? FALSE;
}