Commit b795708d authored by alexpott's avatar alexpott

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

parent a274193d
......@@ -247,8 +247,7 @@ public static function baseFieldDefinitions($entity_type) {
->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.'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment