Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| FileUrlGenerator | class | Drupal\Core\File | core/ |
Default implementation for the file URL generator service. | 1 | 2 | ||
| FileUrlGeneratorInterface | interface | Drupal\Core\File | core/ |
Generates file URLs for a stream to an external or local file. | 1 | 25 | ||
| FileUrlGeneratorTest | class | Drupal\KernelTests\Core\File | core/ |
Tests 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 | 4 | ||
| 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 | 4 | ||
| FileValidatorSettingsTrait | trait | Drupal\file\Validation | core/ |
Provides a trait to create validators from settings. | 3 | |||
| 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. | 8 | 7 | ||
| FileVideoFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_video' formatter. | 1 | |||
| FileVideoFormatterTest | class | Drupal\Tests\file\Functional\Formatter | core/ |
Tests Drupal\file\Plugin\Field\FieldFormatter\FileVideoFormatter. | ||||
| FileViewsData | class | Drupal\file | core/ |
Provides views data for the file entity type. | 1 | |||
| 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. | ||||
| FileViewsHooks | class | Drupal\file\Hook | core/ |
Hook implementations for file. | ||||
| 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. | 5 | |||
| FileXmlAnonTest | class | Drupal\Tests\file\Functional\Rest | core/ |
Tests File Xml Anon. | ||||
| FileXmlBasicAuthTest | class | Drupal\Tests\file\Functional\Rest | core/ |
Tests File Xml Basic Auth. | ||||
| FileXmlCookieTest | class | Drupal\Tests\file\Functional\Rest | core/ |
Tests File Xml Cookie. | ||||
| Filter | class | Drupal\jsonapi\Query | core/ |
Gathers information about the filter parameter. | 3 | |||
| Filter | class | Drupal\filter\Attribute | core/ |
Defines a filter attribute for plugin discovery. | 24 | |||
| Filter | class | Drupal\filter\Annotation | core/ |
Defines a filter annotation object. | ||||
| 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. | ||||
| FilterArray | class | Drupal\Component\Utility | core/ |
Provides methods to filter arrays. | 10 | |||
| FilterArrayTest | class | Drupal\Tests\Component\Utility | core/ |
Test filter array functions. | ||||
| FilterAutoP | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to convert line breaks to HTML. | 2 | |||
| FilterBase | abstract class | Drupal\filter\Plugin | core/ |
Provides a base class for Filter plugins. | 24 | 24 | ||
| FilterBaseTestableClass | class | Drupal\Tests\filter\Unit | core/ |
A class extending FilterBase for testing purposes. | ||||
| 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. | ||||
| FilterCaption | class | Drupal\filter\Plugin\Filter | core/ |
Provides a filter to caption elements. | ||||
| FilterCaptionTwigDebugTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests the caption filter with Twig debugging on. | ||||
| FilterCombineTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the combine filter handler. |
Pagination
- Previous page
- Page 83
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.