Search for to

  1. Search 7.x for to
  2. Search 8.9.x for to
  3. Search 10.3.x for to
  4. Search 11.x for to
  5. Other projects
Title Object type File name Summary
FileItem::validateDirectory function core/modules/file/src/Plugin/Field/FieldType/FileItem.php Form API callback.
FileItemTest::$directory property core/modules/file/tests/src/Kernel/FileItemTest.php Directory where the sample files are stored.
FileMoveTest::$fileRepository property core/modules/image/tests/src/Functional/FileMoveTest.php The file repository service.
FileMoveTest::testOverwriteSelf function core/tests/Drupal/KernelTests/Core/File/FileMoveTest.php Try to move a file onto itself.
FilePathTest::$localDirectory property core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php The base path to the source files on the destination site.
FileReadOnlyStorage class core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Reads code as regular PHP files, but won't write them.
FileReadOnlyStorage.php file core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php
FileReadOnlyStorage::$directory property core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php The directory where the files should be stored.
FileReadOnlyStorage::delete function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Deletes PHP code from storage.
FileReadOnlyStorage::deleteAll function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Removes all files in this bin.
FileReadOnlyStorage::exists function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Checks whether the PHP code exists in storage.
FileReadOnlyStorage::garbageCollection function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Performs garbage collection on the storage.
FileReadOnlyStorage::getFullPath function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Gets the full file path.
FileReadOnlyStorage::listAll function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Lists all the files in the storage.
FileReadOnlyStorage::load function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Loads PHP code from storage.
FileReadOnlyStorage::save function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Saves PHP code to storage.
FileReadOnlyStorage::writeable function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Whether this is a writable storage.
FileReadOnlyStorage::__construct function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Constructs this FileStorage object.
FileRepository class core/modules/file/src/FileRepository.php Provides a file entity repository.
FileRepository.php file core/modules/file/src/FileRepository.php
FileRepository::$currentUser property core/modules/file/src/FileRepository.php The current user.
FileRepository::$entityTypeManager property core/modules/file/src/FileRepository.php The entity type manager.
FileRepository::$fileSystem property core/modules/file/src/FileRepository.php The file system service.
FileRepository::$fileUsage property core/modules/file/src/FileRepository.php The file usage service.
FileRepository::$moduleHandler property core/modules/file/src/FileRepository.php The module handler.
FileRepository::$streamWrapperManager property core/modules/file/src/FileRepository.php The stream wrapper manager.
FileRepository::copy function core/modules/file/src/FileRepository.php Copies a file to a new location and adds a file record to the database.
FileRepository::createOrUpdate function core/modules/file/src/FileRepository.php Create a file entity or update if it exists.
FileRepository::loadByUri function core/modules/file/src/FileRepository.php Loads the first File entity found with the specified URI.
FileRepository::move function core/modules/file/src/FileRepository.php Moves a file to a new location and update the file's database entry.
FileRepository::writeData function core/modules/file/src/FileRepository.php Writes a file to the specified destination and creates a file entity.
FileRepository::__construct function core/modules/file/src/FileRepository.php FileRepository constructor.
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.
FileRepositoryTest class core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests the FileRepository.
FileRepositoryTest.php file core/modules/file/tests/src/Kernel/FileRepositoryTest.php
FileRepositoryTest::$fileRepository property core/modules/file/tests/src/Kernel/FileRepositoryTest.php The file repository service under test.
FileRepositoryTest::$fileSystem property core/modules/file/tests/src/Kernel/FileRepositoryTest.php The file system service.
FileRepositoryTest::setUp function core/modules/file/tests/src/Kernel/FileRepositoryTest.php
FileRepositoryTest::testEntityStorageException function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests for entity storage exception.
FileRepositoryTest::testExistingError function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests that writeData() fails overwriting an existing file.
FileRepositoryTest::testExistingRename function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests writeData() when renaming around an existing file.
FileRepositoryTest::testExistingReplace function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests writeData() when replacing an existing file.
FileRepositoryTest::testInvalidStreamWrapper function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests for an invalid stream wrapper.
FileRepositoryTest::testLoadByUri function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests loading a file by URI.
FileRepositoryTest::testLoadByUriCaseSensitive function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests loading a file by case-sensitive URI.

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