Skip to content
Snippets Groups Projects
Commit b795708d authored by Alex Pott's avatar Alex Pott
Browse files

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

parent a274193d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment