Skip to content

Commit

Permalink
fix(DataProducer): Support all default field types for Entity Definit…
Browse files Browse the repository at this point in the history
…ions Default Value resolver (#1024)
  • Loading branch information
rthideaway authored Nov 6, 2020
1 parent 2c356bb commit 8e4b807
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function resolve(FieldDefinitionInterface $entity_definition_field) {
if (is_array($default_value)) {
switch ($entity_definition_field->getType()) {
case 'list_integer':
case 'list_string':
case 'text_long':
return $default_value ? $default_value[0]['value'] : NULL;

Expand Down

0 comments on commit 8e4b807

Please sign in to comment.