public FileStorage::spaceUsed($uid = NULL, $status = FILE_STATUS_PERMANENT)
Provides helpers to operate on files and stream wrappers. Hierarchy class \Drupal\Core\File\
file_managed_file_save_upload($element, FormStateInterface $form_state) Saves any files that have been uploaded
file_icon_map($mime_type) Determines the generic icon MIME package based on a file's MIME type.
Defines the file entity class. Plugin annotation @ContentEntityType(
file_icon_class($mime_type) Gets a class for the icon for a MIME type. Parameters
public FileUsageInterface::delete(FileInterface
public FileSystem::basename($uri, $suffix = NULL) Gets
file_field_find_file_reference_column(FieldDefinitionInterface $field) Determine whether a field references
public File::setPermanent() Sets the file
Page 1 of 18