Search for interface

  1. Search 7.x for interface
  2. Search 8.9.x for interface
  3. Search 10.3.x for interface
  4. Search 11.x for interface
  5. Other projects
Title Object type File name Summary
FileInterface::getSize function core/modules/file/src/FileInterface.php Returns the size of the file.
FileInterface::isPermanent function core/modules/file/src/FileInterface.php Returns TRUE if the file is permanent.
FileInterface::isTemporary function core/modules/file/src/FileInterface.php Returns TRUE if the file is temporary.
FileInterface::setFilename function core/modules/file/src/FileInterface.php Sets the name of the file.
FileInterface::setFileUri function core/modules/file/src/FileInterface.php Sets the URI of the file.
FileInterface::setMimeType function core/modules/file/src/FileInterface.php Sets the MIME type of the file.
FileInterface::setPermanent function core/modules/file/src/FileInterface.php Sets the file status to permanent.
FileInterface::setSize function core/modules/file/src/FileInterface.php Sets the size of the file.
FileInterface::setTemporary function core/modules/file/src/FileInterface.php Sets the file status to temporary.
FileInterface::STATUS_PERMANENT constant core/modules/file/src/FileInterface.php Indicates that the file is permanent and should not be deleted.
FileMediaFormatterInterface interface core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterInterface.php Defines getter methods for FileMediaFormatterBase.
FileMediaFormatterInterface.php file core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterInterface.php
FileMediaFormatterInterface::getMediaType function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterInterface.php Gets the applicable media type for a formatter.
FileRepositoryInterface interface core/modules/file/src/FileRepositoryInterface.php Performs file system operations and updates database records accordingly.
FileRepositoryInterface.php file core/modules/file/src/FileRepositoryInterface.php
FileRepositoryInterface::copy function core/modules/file/src/FileRepositoryInterface.php Copies a file to a new location and adds a file record to the database.
FileRepositoryInterface::loadByUri function core/modules/file/src/FileRepositoryInterface.php Loads the first File entity found with the specified URI.
FileRepositoryInterface::move function core/modules/file/src/FileRepositoryInterface.php Moves a file to a new location and update the file's database entry.
FileRepositoryInterface::writeData function core/modules/file/src/FileRepositoryInterface.php Writes a file to the specified destination and creates a file entity.
FileStorageInterface interface core/modules/file/src/FileStorageInterface.php Defines an interface for file entity storage classes.
FileStorageInterface.php file core/modules/file/src/FileStorageInterface.php
FileStorageInterface::spaceUsed function core/modules/file/src/FileStorageInterface.php Determines total disk space used by a single user or the whole filesystem.
FileSystemInterface interface core/lib/Drupal/Core/File/FileSystemInterface.php Provides an interface for helpers that operate on files and stream wrappers.
FileSystemInterface.php file core/lib/Drupal/Core/File/FileSystemInterface.php
FileSystemInterface::basename function core/lib/Drupal/Core/File/FileSystemInterface.php Gets the filename from a given path.
FileSystemInterface::chmod function core/lib/Drupal/Core/File/FileSystemInterface.php Sets the permissions on a file or directory.
FileSystemInterface::copy function core/lib/Drupal/Core/File/FileSystemInterface.php Copies a file to a new location without invoking the file API.
FileSystemInterface::createFilename function core/lib/Drupal/Core/File/FileSystemInterface.php Creates a full file path from a directory and filename.
FileSystemInterface::CREATE_DIRECTORY constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag used by ::prepareDirectory() -- create directory if not present.
FileSystemInterface::delete function core/lib/Drupal/Core/File/FileSystemInterface.php Deletes a file without database changes or hook invocations.
FileSystemInterface::deleteRecursive function core/lib/Drupal/Core/File/FileSystemInterface.php Deletes all files and directories in the specified filepath recursively.
FileSystemInterface::dirname function core/lib/Drupal/Core/File/FileSystemInterface.php Gets the name of the directory from a given path.
FileSystemInterface::EXISTS_ERROR constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Do nothing and return FALSE.
FileSystemInterface::EXISTS_RENAME constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Appends number until name is unique.
FileSystemInterface::EXISTS_REPLACE constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Replace the existing file.
FileSystemInterface::getDestinationFilename function core/lib/Drupal/Core/File/FileSystemInterface.php Determines the destination path for a file.
FileSystemInterface::getTempDirectory function core/lib/Drupal/Core/File/FileSystemInterface.php Gets the path of the configured temporary directory.
FileSystemInterface::INSECURE_EXTENSIONS constant core/lib/Drupal/Core/File/FileSystemInterface.php A list of insecure extensions.
FileSystemInterface::INSECURE_EXTENSION_REGEX constant core/lib/Drupal/Core/File/FileSystemInterface.php The regex pattern used when checking for insecure file types.
FileSystemInterface::mkdir function core/lib/Drupal/Core/File/FileSystemInterface.php Creates a directory, optionally creating missing components in the path.
FileSystemInterface::MODIFY_PERMISSIONS constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag used by ::prepareDirectory() -- file permissions may be changed.
FileSystemInterface::move function core/lib/Drupal/Core/File/FileSystemInterface.php Moves a file to a new location without database changes or hook invocation.
FileSystemInterface::moveUploadedFile function core/lib/Drupal/Core/File/FileSystemInterface.php Moves an uploaded file to a new location.
FileSystemInterface::prepareDirectory function core/lib/Drupal/Core/File/FileSystemInterface.php Checks that the directory exists and is writable.
FileSystemInterface::realpath function core/lib/Drupal/Core/File/FileSystemInterface.php Resolves the absolute filepath of a local URI or filepath.
FileSystemInterface::rmdir function core/lib/Drupal/Core/File/FileSystemInterface.php Removes a directory.
FileSystemInterface::saveData function core/lib/Drupal/Core/File/FileSystemInterface.php Saves a file to the specified destination without invoking file API.
FileSystemInterface::scanDirectory function core/lib/Drupal/Core/File/FileSystemInterface.php Finds all files that match a given mask in a given directory.
FileSystemInterface::tempnam function core/lib/Drupal/Core/File/FileSystemInterface.php Creates a file with a unique filename in the specified directory.
FileSystemInterface::unlink function core/lib/Drupal/Core/File/FileSystemInterface.php Deletes a file.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.