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 |
|---|---|---|---|---|---|---|---|---|
| FieldUiTableTest | class | Drupal\Tests\field_ui\Unit | core/ |
Tests Drupal\field_ui\Element\FieldUiTable. | ||||
| FieldUiTest | class | Drupal\Tests\field_ui\Unit | core/ |
Tests Drupal\field_ui\FieldUI. | ||||
| FieldUITest | class | Drupal\Tests\field\Functional\Views | core/ |
Tests the UI of the field handler. | ||||
| FieldUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of field handlers. | ||||
| FieldUiTestDeprecatedHooks | class | Drupal\field_ui_test_deprecated\Hook | core/ |
Hook implementations for field_ui_test_deprecated. | ||||
| FieldUiTestHooks | class | Drupal\field_ui_test\Hook | core/ |
Hook implementations for field_ui_test. | ||||
| FieldUiTestTrait | trait | Drupal\Tests\field_ui\Traits | core/ |
Provides common functionality for the Field UI test classes. | 21 | |||
| FieldUiThemeHooks | class | Drupal\field_ui\Hook | core/ |
Hook implementations for field_ui. | ||||
| FieldUninstallValidator | class | Drupal\field | core/ |
Prevents uninstallation of modules providing active field storage. | 1 | 2 | ||
| FieldUninstallValidatorTest | class | Drupal\Tests\field\Unit | core/ |
Tests Drupal\field\FieldUninstallValidator. | ||||
| FieldUpdateActionBase | abstract class | Drupal\Core\Field | core/ |
Provides a base for action plugins that update one or more fields. | 4 | 4 | ||
| FieldUrlTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Url handler. | ||||
| FieldValidationTest | class | Drupal\Tests\field\Kernel | core/ |
Tests field validation. | ||||
| FieldValuesTest | class | Drupal\Tests\layout_builder\Functional | core/ |
Tests how Layout Builder handles changes to entity fields. | ||||
| FieldViewsDataProvider | class | Drupal\views | core/ |
Provide default views data for fields. | 3 | 2 | ||
| FieldWebTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests fields from within a UI. | ||||
| FieldWidget | class | Drupal\Core\Field\Attribute | core/ |
Defines a FieldWidget attribute for plugin discovery. | 38 | |||
| FieldWidget | class | Drupal\Core\Field\Annotation | core/ |
Defines a FieldWidget annotation object. | ||||
| FieldWidgetConstraint | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Supports validating widget constraints. | ||||
| FieldWidgetConstraintValidator | class | Drupal\entity_test\Plugin\Validation\Constraint | core/ |
Validates the FieldWidgetConstraint constraint. | ||||
| FieldWidgetConstraintValidatorTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests validation constraints for FieldWidgetConstraintValidatorTest. | ||||
| File | class | Drupal\Core\Render\Element | core/ |
Provides a form element for uploading a file. | ||||
| File | class | Drupal\media\Plugin\media\Source | core/ |
File entity media source. | 3 | 3 | ||
| File | class | Drupal\file\Entity | core/ |
Defines the file entity class. | 119 | |||
| File | class | Drupal\file\Plugin\views\field | core/ |
Field handler to provide simple renderer that allows linking to a file. | ||||
| File | class | Drupal\file\Plugin\views\wizard | core/ |
Tests creating managed files views with the wizard. | ||||
| File | class | Drupal\file\Plugin\migrate\source\d6 | core/ |
Drupal 6 file source from database. | 1 | |||
| File | class | Drupal\file\Plugin\migrate\source\d7 | core/ |
Drupal 7 file source from database. | 1 | 2 | ||
| FileAccessControlHandler | class | Drupal\file | core/ |
Provides a File access control handler. | 1 | 2 | ||
| FileAccessFormatterControlHandlerInterface | interface | Drupal\file | core/ |
Defines an interface for file access handlers which runs on file formatters. | 1 | 1 | ||
| FileAudioFormatter | class | Drupal\file\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'file_audio' formatter. | 1 | |||
| FileAudioFormatterTest | class | Drupal\Tests\file\Functional\Formatter | core/ |
Tests Drupal\file\Plugin\Field\FieldFormatter\FileAudioFormatter. | ||||
| FileCache | class | Drupal\Component\FileCache | core/ |
Allows to cache data based on file modification dates. | 1 | 4 | ||
| FileCacheBackendInterface | interface | Drupal\Component\FileCache | core/ |
Defines an interface inspired by APCu for FileCache backends. | 2 | 1 | ||
| FileCacheFactory | class | Drupal\Component\FileCache | core/ |
Creates a FileCache object. | 27 | |||
| FileCacheFactoryTest | class | Drupal\Tests\Component\FileCache | core/ |
Tests Drupal\Component\FileCache\FileCacheFactory. | ||||
| FileCacheInterface | interface | Drupal\Component\FileCache | core/ |
Interface for objects that allow caching file data. | 2 | 3 | ||
| FileCacheTest | class | Drupal\Tests\Component\FileCache | core/ |
Tests Drupal\Component\FileCache\FileCache. | ||||
| FileCopy | class | Drupal\migrate\Plugin\migrate\process | core/ |
Copies or moves a local file from one place into another. | 1 | 2 | ||
| FileCopyTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the file copy process plugin. | ||||
| FileCopyTest | class | Drupal\Tests\migrate\Kernel\process | core/ |
Tests the file_copy process plugin. | ||||
| FileCopyTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file copy function. | 1 | |||
| FileDeleteGadgetChainTest | class | Drupal\KernelTests\Core\File | core/ |
Tests protection against SA-CORE-2024-006 File Delete Gadget Chain. | ||||
| FileDeleteRecursiveTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file delete recursive function. | 1 | |||
| FileDeleteTest | class | Drupal\KernelTests\Core\File | core/ |
Tests the unmanaged file delete function. | 1 | |||
| FileDeprecatedTestThemeHooks | class | Drupal\file_deprecated_test\Hook | core/ |
Hook implementations for file_deprecated_test. | ||||
| FileDownloadController | class | Drupal\system | core/ |
System file controller. | 2 | 3 | ||
| FileDownloadHook | class | Drupal\file\Hook | core/ |
Implements hook_file_download(). | ||||
| FileElementTest | class | Drupal\Tests\system\Kernel\Form | core/ |
Tests for the 'file' form element. | ||||
| FileEncodingConstraint | class | Drupal\file\Plugin\Validation\Constraint | core/ |
Defines an encoding constraint for files. |
Pagination
- Previous page
- Page 79
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.