Classes, traits, and interfaces - 9.5.x - drupal
Introduction to classes
A lot of the PHP code in Drupal is object oriented (OO), making use of PHP classes, interfaces, and traits. See the Objected-oriented programming conventions for more information.
See also
Objected-oriented programming conventions
File
-
core/
core.api.php, line 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
FileFieldFormatterAccessTest | class | Drupal\Tests\file\Functional | core/ |
Tests file formatter access. @group file | ||||
FileFieldItemList | class | Drupal\file\Plugin\Field\FieldType | core/ |
Represents a configurable entity file field. | 2 | |||
FileFieldPathTest | class | Drupal\Tests\file\Functional | core/ |
Tests that files are uploaded to proper locations. | ||||
FileFieldRevisionTest | class | Drupal\Tests\file\Functional | core/ |
Tests creating and deleting revisions with files attached. | ||||
FileFieldRSSContentTest | class | Drupal\Tests\file\Functional | core/ |
Ensure that files added to nodes appear correctly in RSS feeds. | ||||
FileFieldTest | class | Drupal\Tests\file\Unit\Plugin\migrate\field\d6 | core/ |
@coversDefaultClass \Drupal\file\Plugin\migrate\field\d6\FileField @group file | ||||
FileFieldTest | class | Drupal\Tests\file\Unit\Plugin\migrate\field\d7 | core/ |
@coversDefaultClass \Drupal\file\Plugin\migrate\field\d7\FileField @group file | ||||
FileFieldTestBase | abstract class | Drupal\Tests\file\Functional | core/ |
Provides methods specifically for testing File module's field handling. | 15 | 1 | ||
FileFieldValidateTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests file field validation functions. | ||||
FileFieldValidateTest | class | Drupal\Tests\file\Functional | core/ |
Tests file field validation functions. | ||||
FileFieldWidgetTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests the file field widget, single and multi-valued, using AJAX upload. | ||||
FileFieldWidgetTest | class | Drupal\Tests\file\Functional | core/ |
Tests the file field widget with public and private files. | ||||
FileFormatterBase | abstract class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Base class for file formatters. | 5 | 1 | ||
FileHalJsonAnonTest | class | Drupal\Tests\hal\Functional\file | core/ |
@group hal @group legacy | 2 | |||
FileHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\file | core/ |
@group hal @group legacy | ||||
FileHalJsonCookieTest | class | Drupal\Tests\hal\Functional\file | core/ |
@group hal @group legacy | ||||
FileInterface | interface | Drupal\file | core/ |
Defines getter and setter methods for file entity base fields. | 1 | 36 | ||
FileItem | class | Drupal\file\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'file' field type. | 1 | 4 | ||
FileItemTest | class | Drupal\Tests\file\Kernel | core/ |
Tests using entity fields of the file field type. | ||||
FileItemValidationTest | class | Drupal\Tests\file\Kernel | core/ |
Tests that files referenced in file and image fields are always validated. | ||||
FileJsonAnonTest | class | Drupal\Tests\file\Functional\Rest | core/ |
@group rest | ||||
FileJsonBasicAuthTest | class | Drupal\Tests\file\Functional\Rest | core/ |
@group rest | ||||
FileJsonCookieTest | class | Drupal\Tests\file\Functional\Rest | core/ |
@group rest | ||||
FileListingTest | class | Drupal\Tests\file\Functional | core/ |
Tests file listing page functionality. | ||||
FileManagedAccessTest | class | Drupal\Tests\file\Kernel | core/ |
Tests access to managed files. | ||||
FileManagedFileElementTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests the 'managed_file' element type. | ||||
FileManagedFileElementTest | class | Drupal\Tests\file\Functional | core/ |
Tests the 'managed_file' element type. | ||||
FileManagedTestBase | abstract class | Drupal\Tests\file\Functional | core/ |
Provides a base class for testing files with the file_test module. | 3 | |||
FileManagedUnitTestBase | abstract class | Drupal\Tests\file\Kernel | core/ |
Provides a base class for testing file uploads and hook invocations. | 14 | |||
FileMediaFormatterBase | abstract class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Base class for media file formatter. | 2 | |||
FileMediaFormatterInterface | interface | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Defines getter methods for FileMediaFormatterBase. | 1 | |||
FileMediaFormatterTestBase | abstract class | Drupal\Tests\file\Functional\Formatter | core/ |
Provides methods specifically for testing File module's media formatter's. | 2 | |||
FileMigrationSetupTrait | trait | Drupal\Tests\file\Kernel\Migrate\d7 | core/ |
A trait to setup the file migration. | 4 | |||
FileMigrationTestTrait | trait | Drupal\Tests\file\Kernel\Migrate\d6 | core/ |
Helper for setting up a file migration test. | 5 | |||
FilemimeFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter to render the file MIME type, with an optional icon. | ||||
FileModuleTestForm | class | Drupal\file_module_test\Form | core/ |
Form controller for file_module_test module. | 1 | |||
FileMoveTest | class | Drupal\Tests\image\Functional | core/ |
Tests the file move function for images and image styles. | ||||
FileMoveTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file move function. | 1 | |||
FileNormalizeTest | class | Drupal\Tests\hal\Kernel | core/ |
Tests that file entities can be normalized in HAL. | ||||
FileNotExistsException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when a file is expected to exist but does not. | 4 | |||
FileOnTranslatedEntityTest | class | Drupal\Tests\file\Functional | core/ |
Uploads files to translated nodes. | ||||
FilePathTest | class | Drupal\Tests\migrate_drupal_ui\Functional\d7 | core/ |
Tests the Drupal 7 public and private file migrations. | ||||
FilePrivateTest | class | Drupal\Tests\file\Functional | core/ |
Uploads a test to a private node and checks access. | ||||
FileProcessBase | abstract class | Drupal\migrate\Plugin\migrate\process | core/ |
Provides functionality for file process plugins. | 2 | |||
FileReadOnlyStorage | class | Drupal\Component\PhpStorage | core/ |
Reads code as regular PHP files, but won't write them. | 1 | |||
FileRepository | class | Drupal\file | core/ |
Provides a file entity repository. | 3 | 2 | ||
FileRepositoryInterface | interface | Drupal\file | core/ |
Performs file system operations and updates database records accordingly. | 1 | 1 | ||
FileRepositoryTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the FileRepository. | ||||
FileRequiredTestForm | class | Drupal\file_test\Form | core/ |
File required test form class. | 1 | |||
FileResourceTestBase | abstract class | Drupal\Tests\file\Functional\Rest | core/ |
7 | 1 |
Pagination
- Previous page
- Page 71
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.