Search for file

  1. Search 7.x for file
  2. Search 9.5.x for file
  3. Search 10.3.x for file
  4. Search 11.x for file
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
File class core/modules/media/src/Plugin/media/Source/File.php File entity media source.
File class core/modules/file/src/Entity/File.php Defines the file entity class.
File class core/modules/file/src/Plugin/views/field/File.php Field handler to provide simple renderer that allows linking to a file.
File class core/modules/file/src/Plugin/views/wizard/File.php Tests creating managed files views with the wizard.
File class core/modules/file/src/Plugin/migrate/source/d6/File.php Drupal 6 file source from database.
File class core/modules/file/src/Plugin/migrate/source/d7/File.php Drupal 7 file source from database.
File class core/lib/Drupal/Core/Render/Element/File.php Provides a form element for uploading a file.

All search results

Title Object type File name Summary
FileManagedTestBase::assertFileUnchanged function core/modules/file/src/Tests/FileManagedTestBase.php Asserts that two files have the same values (except timestamp).
FileManagedTestBase::assertSameFile function core/modules/file/src/Tests/FileManagedTestBase.php Asserts that two files are the same by comparing the fid and filepath.
FileManagedTestBase::assertSameFile function core/modules/file/tests/src/Functional/FileManagedTestBase.php Asserts that two files are the same by comparing the fid and filepath.
FileManagedTestBase::createFile function core/modules/file/tests/src/Functional/FileManagedTestBase.php Create a file and save it to the files table and assert that it occurs
correctly.
FileManagedTestBase::createFile function core/modules/file/src/Tests/FileManagedTestBase.php Create a file and save it to the files table and assert that it occurs
correctly.
FileManagedTestBase::createUri function core/modules/file/src/Tests/FileManagedTestBase.php Creates a file and returns its URI.
FileManagedTestBase::createUri function core/modules/file/tests/src/Functional/FileManagedTestBase.php Creates a file and returns its URI.
FileManagedTestBase::setUp function core/modules/file/tests/src/Functional/FileManagedTestBase.php
FileManagedTestBase::setUp function core/modules/file/src/Tests/FileManagedTestBase.php Sets up a Drupal site for running functional and integration tests.
FileManagedUnitTestBase class core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Base class for file unit tests that use the file_test module to test uploads and
hooks.
FileManagedUnitTestBase.php file core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
FileManagedUnitTestBase::$modules property core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Modules to enable.
FileManagedUnitTestBase::assertDifferentFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files are not the same by comparing the fid and filepath.
FileManagedUnitTestBase::assertFileHookCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedUnitTestBase::assertFileHooksCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileManagedUnitTestBase::assertFileUnchanged function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files have the same values (except timestamp).
FileManagedUnitTestBase::assertSameFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files are the same by comparing the fid and filepath.
FileManagedUnitTestBase::createFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Create a file and save it to the files table and assert that it occurs
correctly.
FileManagedUnitTestBase::createUri function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Creates a file and returns its URI.
FileManagedUnitTestBase::setUp function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
FileMediaFormatterBase class core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Base class for media file formatter.
FileMediaFormatterBase.php file core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php
FileMediaFormatterBase::defaultSettings function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Defines the default settings for this plugin.
FileMediaFormatterBase::getHtmlTag function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Gets the HTML tag for the formatter.
FileMediaFormatterBase::getSourceFiles function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Gets source files with attributes.
FileMediaFormatterBase::isApplicable function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Returns if the formatter can be used for the provided field.
FileMediaFormatterBase::mimeTypeApplies function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Check if given MIME type applies to the media type of the formatter.
FileMediaFormatterBase::prepareAttributes function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Prepare the attributes according to the settings.
FileMediaFormatterBase::settingsForm function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Returns a form to configure settings for the formatter.
FileMediaFormatterBase::settingsSummary function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Returns a short summary for the current formatter settings.
FileMediaFormatterBase::viewElements function core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php Builds a renderable array for a field value.
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.
FileMediaFormatterTestBase class core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php Provides methods specifically for testing File module's media formatter's.
FileMediaFormatterTestBase.php file core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php
FileMediaFormatterTestBase::$modules property core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php Modules to enable.
FileMediaFormatterTestBase::createMediaField function core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php Creates a file field and set's the correct formatter.
FileMediaFormatterTestBase::dataProvider function core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php Data provider for testRender.
FileMediaFormatterTestBase::setUp function core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php
FileMigrationSetupTrait trait core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php A trait to setup the file migration.
FileMigrationSetupTrait.php file core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php
FileMigrationSetupTrait::assertEntity function core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php Tests a single file entity.
FileMigrationSetupTrait::fileMigrationSetup function core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php Prepare the file migration for running.
FileMigrationSetupTrait::getFileMigrationInfo function core/modules/file/tests/src/Kernel/Migrate/d7/FileMigrationSetupTrait.php Returns information about the file to be migrated.
FileMigrationTestTrait trait core/modules/file/tests/src/Kernel/Migrate/d6/FileMigrationTestTrait.php Helper for setting up a file migration test.
FileMigrationTestTrait.php file core/modules/file/tests/src/Kernel/Migrate/d6/FileMigrationTestTrait.php
FileMigrationTestTrait::prepareMigration function core/modules/file/tests/src/Kernel/Migrate/d6/FileMigrationTestTrait.php
FileMigrationTestTrait::setUpMigratedFiles function core/modules/file/tests/src/Kernel/Migrate/d6/FileMigrationTestTrait.php Setup and execute d6_file migration.
FilemimeFormatter class core/modules/file/src/Plugin/Field/FieldFormatter/FilemimeFormatter.php Formatter to render the file MIME type, with an optional icon.

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