Issue #2149877 by amateescu, swentel: The 'filesize' base field of field entities is a boolean?.

8.0.x
Alex Pott 2013-12-14 15:00:04 +00:00
parent a274193d2c
commit b795708dbb
1 changed files with 1 additions and 2 deletions

View File

@ -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.'));