Classes, traits, and interfaces - 8.9.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 1511 
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings | 
|---|---|---|---|---|---|---|---|---|
| FieldTestItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ | Defines the 'field_test' entity field type. | ||||
| FieldTranslationSqlStorageTest | class | Drupal\KernelTests\Core\Entity | core/ | Tests Field translation SQL Storage. | ||||
| FieldTranslationSynchronizer | class | Drupal\content_translation | core/ | Provides field translation synchronization capabilities. | 1 | 2 | ||
| FieldTranslationSynchronizerInterface | interface | Drupal\content_translation | core/ | Provides field translation synchronization capabilities. | 1 | 1 | ||
| FieldType | class | Drupal\Core\Field\Annotation | core/ | Defines a FieldType annotation object. | ||||
| FieldType | class | Drupal\field\Plugin\migrate\process | core/ | Plugin annotation @MigrateProcessPlugin( id = "field_type" ) | ||||
| FieldTypeDefaults | class | Drupal\field\Plugin\migrate\process\d6 | core/ | Gives us a chance to set per field defaults. | 1 | 2 | ||
| FieldTypeDefaults | class | Drupal\field\Plugin\migrate\process\d7 | core/ | Gives us a chance to set per field defaults. | 1 | |||
| FieldTypeDefaults | in drupal:8.6.0 and is removed from drupal:9.0.0. Use d6_field_type_defaults or d7_field_type_defaults instead. | class | Drupal\field\Plugin\migrate\process | core/ | BC Layer. | 1 | ||
| FieldTypeDefaultsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process | core/ | Tests the deprecation of the field_type_defaults process plugin. | ||||
| FieldTypeDefaultsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process\d6 | core/ | Tests D6 fields defaults. | ||||
| FieldTypeDefaultsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process\d7 | core/ | Tests D7 field formatter defaults. | ||||
| FieldTypePluginManager | class | Drupal\Core\Field | core/ | Plugin manager for 'field type' plugins. | 1 | 2 | ||
| FieldTypePluginManagerInterface | interface | Drupal\Core\Field | core/ | Defines an interface for the field type plugin manager. | 1 | 31 | ||
| FieldTypePluginManagerTest | class | Drupal\Tests\field\Kernel | core/ | Tests the field type manager. | 1 | |||
| FieldTypeTest | class | Drupal\Tests\block_content\Functional\Views | core/ | Tests the Drupal\block_content\Plugin\views\field\Type handler. | ||||
| FieldUI | class | Drupal\field_ui | core/ | Static service container wrapper for Field UI. | 12 | |||
| FieldUIDeleteTest | class | Drupal\Tests\field_ui\Functional | core/ | Tests deletion of a field and their dependencies in the UI. | ||||
| FieldUIIndentationTest | class | Drupal\Tests\field_ui\Functional | core/ | Tests indentation on Field UI. | ||||
| FieldUiIntegrationTest | class | Drupal\Tests\media_library\FunctionalJavascript | core/ | Tests field UI integration for media library widget. | ||||
| FieldUiLocalAction | class | Drupal\field_ui\Plugin\Derivative | core/ | Provides local action definitions for all entity bundles. | 1 | |||
| FieldUiLocalTask | class | Drupal\field_ui\Plugin\Derivative | core/ | Provides local task definitions for all entity bundles. | 1 | 1 | ||
| FieldUiPermissions | class | Drupal\field_ui | core/ | Provides dynamic permissions of the field_ui module. | ||||
| FieldUiRouteEnhancer | class | Drupal\field_ui\Routing | core/ | Enhances Field UI routes by adding proper information about the bundle name. | 2 | |||
| FieldUIRouteTest | class | Drupal\Tests\field_ui\Functional | core/ | Tests the functionality of the Field UI route subscriber. | ||||
| FieldUiTable | class | Drupal\field_ui\Element | core/ | Provides a field_ui table element. | 1 | |||
| FieldUiTest | class | Drupal\Tests\field_ui\Unit | core/ | @coversDefaultClass \Drupal\field_ui\FieldUI[[api-linebreak]] | ||||
| FieldUITest | class | Drupal\Tests\views_ui\Functional | core/ | Tests the UI of field handlers. | ||||
| FieldUITest | class | Drupal\Tests\field\Functional\Views | core/ | Tests the UI of the field field handler. | ||||
| FieldUiTestTrait | in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\field_ui\Traits\FieldUiTestTrait. See https://www.drupal.org/node/3001664 | trait | Drupal\field_ui\Tests | core/ | Provides common functionality for the Field UI test classes. | |||
| FieldUiTestTrait | trait | Drupal\Tests\field_ui\Traits | core/ | Provides common functionality for the Field UI test classes. | 10 | |||
| FieldUninstallValidator | class | Drupal\field\ProxyClass | core/ | Provides a proxy class for \Drupal\field\FieldUninstallValidator. | ||||
| FieldUninstallValidator | class | Drupal\field | core/ | Prevents uninstallation of modules providing active field storage. | 2 | |||
| FieldUninstallValidatorTest | class | Drupal\Tests\field\Unit | core/ | @coversDefaultClass \Drupal\field\FieldUninstallValidator[[api-linebreak]] @group field | ||||
| FieldUpdateActionBase | abstract class | Drupal\Core\Field | core/ | Provides a base for action plugins that update one or more fields. | 4 | 4 | ||
| FieldUpdateTest | class | Drupal\Tests\field\Functional\Update | core/ | Tests that field settings are properly updated during database updates. | ||||
| 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. | ||||
| FieldWebTest | class | Drupal\Tests\views\Functional\Handler | core/ | Tests fields from within a UI. | ||||
| 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 | 2 | ||
| File | class | Drupal\file\Entity | core/ | Defines the file entity class. | 107 | |||
| 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. | ||||
| File | class | Drupal\file\Plugin\migrate\source\d7 | core/ | Drupal 7 file source from database. | 
Pagination
- Previous page
- Page 69
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
