- if (!is_array($value)) {
- if ($value === NULL) {
- $value = [];
- }
- $key = $this->getFieldStorageDefinition()->getPropertyNames()[0];
- // Convert to the multi value format to support fields with a cardinality
- // greater than 1.
- $value = [
- [$key => $value],
- ];
- }
- $this->default_value = $value;