Issue #2149877 by amateescu, swentel: The 'filesize' base field of field entities is a boolean?.
parent
a274193d2c
commit
b795708dbb
|
@ -247,8 +247,7 @@ class File extends ContentEntityBase implements FileInterface {
|
|||
->setLabel(t('File MIME type'))
|
||||
->setDescription(t("The file's MIME type."));
|
||||
|
||||
// @todo Convert to an integer field in https://drupal.org/node/2149877.
|
||||
$fields['filesize'] = FieldDefinition::create('boolean')
|
||||
$fields['filesize'] = FieldDefinition::create('integer')
|
||||
->setLabel(t('File size'))
|
||||
->setDescription(t('The size of the file in bytes.'));
|
||||
|
||||
|
|
Loading…
Reference in New Issue