Classes, traits, and interfaces - 10.3.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 1518
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. | 4 | |||
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[[api-linebreak]] @group file | ||||
FileFieldTest | class | Drupal\Tests\file\Unit\Plugin\migrate\field\d7 | core/ |
@coversDefaultClass \Drupal\file\Plugin\migrate\field\d7\FileField[[api-linebreak]] @group file | ||||
FileFieldTestBase | abstract class | Drupal\Tests\file\Functional | core/ |
Provides methods specifically for testing File module's field handling. | 14 | |||
FileFieldValidateTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests file field validation functions. | ||||
FileFieldValidateTest | class | Drupal\Tests\file\Functional | core/ |
Tests file field validation functions. | ||||
FileFieldWidgetClaroThemeTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests the widget visibility settings for the Claro theme. | ||||
FileFieldWidgetTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests the file field widget, single and multi-valued, using AJAX upload. | 1 | |||
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 | ||
FileImageDimensionsConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File extension dimensions constraint. | ||||
FileImageDimensionsConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validator for the FileImageDimensionsConstraint. | ||||
FileImageDimensionsConstraintValidatorTest | class | Drupal\Tests\file\Kernel\Plugin\Validation\Constraint | core/ |
Tests the FileImageDimensionsConstraintValidator. | ||||
FileInterface | interface | Drupal\file | core/ |
Defines getter and setter methods for file entity base fields. | 1 | 45 | ||
FileIsImageConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File is image constraint. | ||||
FileIsImageConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validator for the FileIsImageConstraint. | ||||
FileIsImageConstraintValidatorTest | class | Drupal\Tests\file\Kernel\Plugin\Validation\Constraint | core/ |
Tests the FileIsImageConstraintValidator. | ||||
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. | 1 | 1 | ||
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. | 13 | |||
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\Kernel | 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 | |||
FileNameLengthConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
File name length constraint. | ||||
FileNameLengthConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validates the file name length constraint. | ||||
FileNameLengthConstraintValidatorTest | class | Drupal\Tests\file\Kernel\Plugin\Validation\Constraint | core/ |
Tests the FileNameLengthConstraintValidator. | ||||
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 |
Pagination
- Previous page
- Page 74
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.