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 |
---|---|---|---|---|---|---|---|---|
FieldEntityTest | class | Drupal\Tests\views\Functional\Entity | core/ |
Tests the field plugin base integration with the entity system. | ||||
FieldEntityTranslationTest | class | Drupal\Tests\views\Functional\Entity | core/ |
Tests the rendering of fields (base fields) and their translations. | ||||
FieldException | class | Drupal\Core\Field | core/ |
Base class for all exceptions thrown by the Entity Field API functions. | 1 | 12 | ||
FieldFieldAccessTestBase | abstract class | Drupal\Tests\views\Kernel\Handler | core/ |
Provides a base class for base field access in views. | 6 | 5 | ||
FieldFieldTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Provides some integration tests for the Field handler. | ||||
FieldFile | class | Drupal\file\Plugin\migrate\process\d6 | core/ |
#[MigrateProcess('d6_field_file')] | 1 | |||
FieldFileSizeTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\FileSize handler. | ||||
FieldFileTest | class | Drupal\Tests\file\Unit\Plugin\migrate\process\d6 | core/ |
@group file | ||||
FieldFilteredMarkup | final class | Drupal\Core\Field | core/ |
Defines an object that passes safe strings through the Field system. | 12 | |||
FieldFilteredMarkupTest | class | Drupal\Tests\Core\Field | core/ |
@coversDefaultClass \Drupal\Core\Field\FieldFilteredMarkup[[api-linebreak]] @group Field | ||||
FieldFormatter | class | Drupal\Core\Field\Attribute | core/ |
Defines a FieldFormatter attribute for plugin discovery. | 66 | |||
FieldFormatter | class | Drupal\Core\Field\Annotation | core/ |
Defines a FieldFormatter annotation object. | ||||
FieldFormatterSettingsDefaults | class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Set the default field settings. | ||||
FieldFormatterTest | class | Drupal\Tests\field\Kernel | core/ |
Tests for field formatters. | ||||
FieldFormButtonTest | class | Drupal\views_test_data\Plugin\views\field | core/ |
A handler to provide a field that is completely custom by the administrator. | ||||
Fieldgroup | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a group of form elements. | ||||
FieldGroupRowsTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the "Display all values in the same row" setting. | ||||
FieldGroupRowsWebTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests the "Display all values in the same row" setting. | ||||
FieldHandlerInterface | interface | Drupal\views\Plugin\views\field | core/ |
Base field handler that has no options and renders an unformatted field. | 2 | |||
FieldHelpTest | class | Drupal\Tests\field\Functional | core/ |
Tests help display for the Field module. | ||||
FieldImportChangeTest | class | Drupal\Tests\field\Kernel | core/ |
Update field storage and fields during config change method invocation. | ||||
FieldImportCreateTest | class | Drupal\Tests\field\Kernel | core/ |
Create field storages and fields during config create method invocation. | ||||
FieldImportDeleteTest | class | Drupal\Tests\field\Kernel | core/ |
Delete field storages and fields during config delete method invocation. | ||||
FieldImportDeleteUninstallTest | class | Drupal\Tests\field\Kernel | core/ |
Tests field storages and fields deletion during config synchronization. | ||||
FieldImportDeleteUninstallUiTest | class | Drupal\Tests\field\Functional | core/ |
Tests deleting field storage when a module in uninstalled through the UI. | ||||
FieldInputValueNormalizerTrait | trait | Drupal\Core\Field | core/ |
A trait used to assist in the normalization of raw input field values. | 1 | |||
FieldInputValueNormalizerTraitTest | class | Drupal\Tests\Core\Field | core/ |
@coversDefaultClass \Drupal\Core\Field\FieldInputValueNormalizerTrait[[api-linebreak]] @group Field | ||||
FieldInstance | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 field instances source from database. | 1 | |||
FieldInstance | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field instances source from database. | 3 | 1 | ||
FieldInstanceDefaults | class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Determines the default field settings. | ||||
FieldInstanceDefaults | class | Drupal\field\Plugin\migrate\process\d7 | core/ |
#[MigrateProcess('d7_field_instance_defaults')] | ||||
FieldInstanceLabelDescriptionTranslationTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the field label and description translation source plugin. | ||||
FieldInstanceLabelDescriptionTranslationTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d7 | core/ |
Tests the field label and description translation source plugin. | ||||
FieldInstanceOptionTranslation | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n field instance option labels source from database. | ||||
FieldInstanceOptionTranslation | class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Determines the settings property and translation for boolean fields. | ||||
FieldInstanceOptionTranslation | class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Determines the settings property and translation for boolean fields. | ||||
FieldInstanceOptionTranslationTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the field instance option translation source plugin. | ||||
FieldInstancePerFormDisplay | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 field instance per form display source from database. | ||||
FieldInstancePerFormDisplay | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field instance per form display source from database. | ||||
FieldInstancePerFormDisplayTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests d6_field_instance_per_form_display source plugin. | ||||
FieldInstancePerFormDisplayTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 field instance per form display source plugin. | ||||
FieldInstancePerViewMode | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 field instance per view mode source from database. | ||||
FieldInstancePerViewMode | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field instance per view mode source class. | ||||
FieldInstancePerViewModeTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 fields per view mode source plugin. | ||||
FieldInstancePerViewModeTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 field instance per view mode source plugin. | ||||
FieldInstanceSettings | class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Determines the field instance settings. | 1 | |||
FieldInstanceSettings | class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Determines the field instance settings. | 1 | |||
FieldInstanceSettingsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process\d6 | core/ |
@coversDefaultClass \Drupal\field\Plugin\migrate\process\d6\FieldInstanceSettings[[api-linebreak]] @group field | ||||
FieldInstanceSettingsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process\d7 | core/ |
@coversDefaultClass \Drupal\field\Plugin\migrate\process\d7\FieldInstanceSettings[[api-linebreak]] @group field | ||||
FieldInstanceTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 field instance source plugin. |
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.