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 |
---|---|---|---|---|---|---|---|---|
FileUploadHandlerTest | class | Drupal\Tests\file\Kernel | core/ |
Tests the file upload handler. | ||||
FileUploadJsonBasicAuthTest | class | Drupal\Tests\file\Functional | core/ |
@group file | ||||
FileUploadJsonCookieTest | class | Drupal\Tests\file\Functional | core/ |
@group file | ||||
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. | 3 | 3 | ||
FileUploadResult | class | Drupal\file\Upload | core/ |
Value object for a file upload result. | ||||
FileUploadSanitizeNameEvent | class | Drupal\Core\File\Event | core/ |
An event during file upload that lets subscribers sanitize the filename. | 8 | |||
FileUploadSanitizeNameEventTest | class | Drupal\Tests\Core\File | core/ |
FileUploadSanitizeNameEvent tests. | ||||
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 @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 | 14 | ||
FileUrlGeneratorTest | class | Drupal\KernelTests\Core\File | core/ |
@coversDefaultClass \Drupal\Core\File\FileUrlGenerator | ||||
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 | 2 | ||
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. | ||||
FileValidationException | class | Drupal\file\Upload | core/ |
Provides an exception for upload validation errors. | 1 | |||
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 @group file | ||||
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. | ||||
FileWriteException | class | Drupal\Core\File\Exception | core/ |
Exception thrown when file cannot be written to disk. | 4 | |||
FileXmlAnonTest | class | Drupal\Tests\file\Functional\Rest | core/ |
@group rest | ||||
FileXmlBasicAuthTest | class | Drupal\Tests\file\Functional\Rest | core/ |
@group rest | ||||
FileXmlCookieTest | class | Drupal\Tests\file\Functional\Rest | core/ |
@group rest | ||||
Filter | class | Drupal\filter\Annotation | core/ |
Defines a filter annotation object. | ||||
Filter | class | Drupal\jsonapi\Query | core/ |
Gathers information about the filter parameter. | 3 | |||
FilterAdminTest | class | Drupal\Tests\filter\Functional | core/ |
Thoroughly test the administrative interface of the filter module. | ||||
FilterAlign | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to align elements. | ||||
FilterAndArgumentUserUidTest | class | Drupal\Tests\comment\Kernel\Views | core/ |
Tests the user posted or commented filter and argument handlers. | ||||
FilterAPITest | class | Drupal\Tests\filter\Kernel | core/ |
Tests the behavior of the API of the Filter module. | ||||
FilterAutoP | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to convert line breaks to HTML. | 1 | |||
FilterBase | abstract class | Drupal\filter\Plugin | core/ |
Provides a base class for Filter plugins. | 22 | 22 | ||
FilterBooleanOperatorDefaultTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the queryOpBoolean() with default operator. | ||||
FilterBooleanOperatorDefaultTest | class | Drupal\views_test_data\Plugin\views\filter | core/ |
Filter to test queryOpBoolean() with default operator. | ||||
FilterBooleanOperatorGroupTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\filter\BooleanOperator handler. | ||||
FilterBooleanOperatorStringTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests core's BooleanOperatorString views filter handler. | ||||
FilterBooleanOperatorTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\filter\BooleanOperator handler. | ||||
FilterBooleanWebTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the boolean filter UI. |
Pagination
- Previous page
- Page 73
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.