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 |
---|---|---|---|---|---|---|---|---|
FileTransferAuthorizeForm | class | Drupal\Core\FileTransfer\Form | core/ |
Provides the file transfer authorization form. | ||||
FileTransferAuthorizeFormTest | class | Drupal\Tests\update\Functional | core/ |
Tests the Update Manager module upload via authorize.php functionality. | ||||
FileTransferException | class | Drupal\Core\FileTransfer | core/ |
Exception thrown for file transfer errors. | 2 | |||
FileTransferTest | class | Drupal\Tests\system\Unit\FileTransfer | core/ |
@group FileTransfer | ||||
FileTransferTest | class | Drupal\Tests\system\Functional\FileTransfer | core/ |
Tests recursive file copy operations with the file transfer jail. | ||||
FileTranslation | class | Drupal\Core\StringTranslation\Translator | core/ |
File based string translation. | 3 | |||
FileUpload | class | Drupal\jsonapi\Controller | core/ |
Handles file upload requests. | 1 | 2 | ||
FileUploadForm | class | Drupal\media_library\Form | core/ |
Creates a form to create media entities from uploaded files. | 2 | |||
FileUploadHandler | class | Drupal\file\Upload | core/ |
Handles validating and creating file entities from file uploads. | 4 | 2 | ||
FileUploadHandlerTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file upload handler. | ||||
FileUploadJsonBasicAuthTest | class | Drupal\Tests\file\Functional | core/ |
@group file @group #slow | ||||
FileUploadJsonCookieTest | class | Drupal\Tests\file\Functional | core/ |
@group file @group #slow | ||||
FileUploadLocationTrait | trait | Drupal\file\Upload | core/ |
Resolves the file upload location from a file field definition. | 3 | |||
FileUploadResource | class | Drupal\file\Plugin\rest\resource | core/ |
File upload resource. | ||||
FileUploadResourceTestBase | abstract class | Drupal\Tests\rest\Functional | core/ |
Tests binary data file upload route. | 2 | 2 | ||
FileUploadResult | class | Drupal\file\Upload | core/ |
Value object for a file upload result. | 1 | |||
FileUploadSanitizeNameEvent | class | Drupal\Core\File\Event | core/ |
An event during file upload that lets subscribers sanitize the filename. | 9 | |||
FileUploadSanitizeNameEventTest | class | Drupal\Tests\Core\File | core/ |
FileUploadSanitizeNameEvent tests. | ||||
FileUploadTest | class | Drupal\Tests\jsonapi\Kernel\Controller | core/ |
@coversDefaultClass \Drupal\jsonapi\Controller\FileUpload[[api-linebreak]] @group jsonapi | ||||
FileUploadTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Tests binary data file upload route. | ||||
FileUri | class | Drupal\file\Plugin\migrate\process\d6 | core/ |
Process the file URL into a D8 compatible URL. | 1 | |||
FileUriFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Formatter to render the file URI to its download path. | ||||
FileUriItem | class | Drupal\file\Plugin\Field\FieldType | core/ |
File-specific plugin implementation of a URI item to provide a full URL. | ||||
FileUriItemTest | class | Drupal\Tests\file\Kernel | core/ |
File URI field item test. | ||||
FileUriTest | class | Drupal\Tests\file\Unit\Plugin\migrate\process\d6 | core/ |
@coversDefaultClass \Drupal\file\Plugin\migrate\process\d6\FileUri[[api-linebreak]] @group file | ||||
FileUriUnique | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Supports validating file URIs. | ||||
FileUrlGenerator | class | Drupal\Core\File | core/ |
Default implementation for the file URL generator service. | 2 | |||
FileUrlGeneratorInterface | interface | Drupal\Core\File | core/ |
Generates file URLs for a stream to an external or local file. | 1 | 17 | ||
FileUrlGeneratorTest | class | Drupal\KernelTests\Core\File | core/ |
@coversDefaultClass \Drupal\Core\File\FileUrlGenerator[[api-linebreak]] | ||||
FileUrlTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file URL. | ||||
FileUsageBase | abstract class | Drupal\file\FileUsage | core/ |
Defines the base class for database file usage backend. | 2 | 1 | ||
FileUsageInterface | interface | Drupal\file\FileUsage | core/ |
File usage backend interface. | 1 | 3 | ||
FileUsed | class | Drupal\file_test_get_ids\Plugin\migrate\source\d7 | core/ |
Drupal 7 file source from database restricted to used files. | ||||
FileValidationConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Validation File constraint. | ||||
FileValidationConstraintValidator | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Checks that a file referenced in a file field is valid. | ||||
FileValidationEvent | class | Drupal\file\Validation | core/ |
Event for file validations. | 1 | |||
FileValidationException | class | Drupal\file\Upload | core/ |
Provides an exception for upload validation errors. | ||||
FileValidationTestSubscriber | class | Drupal\file_validator_test\EventSubscriber | core/ |
Provides a validation listener for file validation tests. | 2 | |||
FileValidator | class | Drupal\file\Validation | core/ |
Provides a class for file validation. | 2 | |||
FileValidatorInterface | interface | Drupal\file\Validation | core/ |
Provides a file validator that supports a list of validations. | 1 | 6 | ||
FileValidatorSettingsTrait | trait | Drupal\file\Validation | core/ |
Provides a trait to create validators from settings. | 4 | |||
FileValidatorTest | class | Drupal\Tests\file\Kernel\Validation | core/ |
Tests the file validator. | ||||
FileValidatorTestBase | abstract class | Drupal\Tests\file\Kernel\Validation | core/ |
Provides a base file constraint validator test. | 7 | 6 | ||
FileVideoFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_video' formatter. | ||||
FileVideoFormatterTest | class | Drupal\Tests\file\Functional\Formatter | core/ |
@coversDefaultClass \Drupal\file\Plugin\Field\FieldFormatter\FileVideoFormatter[[api-linebreak]] @group file @group #slow | ||||
FileViewsData | class | Drupal\file | core/ |
Provides views data for the file entity type. | ||||
FileViewsDataTest | class | Drupal\Tests\options\Kernel\Views | core/ |
Tests file views data. | ||||
FileViewsFieldAccessTest | class | Drupal\Tests\file\Kernel\Views | core/ |
Tests base field access in Views for the file entity. | ||||
FileWidget | class | Drupal\file\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'file_generic' widget. | 1 | 1 | ||
FileWidgetAjaxController | class | Drupal\file\Controller | core/ |
Defines a controller to respond to file widget AJAX requests. |
Pagination
- Previous page
- Page 76
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.