* @ContentEntityType(
* id = "file",
* label = @Translation("File"),
+ * label_collection = @Translation("Files"),
+ * label_singular = @Translation("file"),
+ * label_plural = @Translation("files"),
+ * label_count = @PluralTranslation(
+ * singular = "@count file",
+ * plural = "@count files",
+ * ),
* handlers = {
* "storage" = "Drupal\file\FileStorage",
* "storage_schema" = "Drupal\file\FileStorageSchema",
->setLabel(t('Filename'))
->setDescription(t('Name of the file with no path components.'));
- $fields['uri'] = BaseFieldDefinition::create('uri')
+ $fields['uri'] = BaseFieldDefinition::create('file_uri')
->setLabel(t('URI'))
->setDescription(t('The URI to access the file (either local or remote).'))
->setSetting('max_length', 255)