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 |
|---|---|---|---|---|---|---|---|---|
| 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/ |
Tests Drupal\Core\Field\FieldInputValueNormalizerTrait. | ||||
| FieldInstance | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 field instances source from database. | 2 | |||
| FieldInstance | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field instances source from database. | 3 | 2 | ||
| FieldInstanceDefaults | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Determines the default field settings. | |||
| FieldInstanceDefaults | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Determines the default values for a field instance. | |||
| 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. | 1 | |||
| FieldInstanceOptionTranslation | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Determines the settings property and translation for boolean fields. | |||
| FieldInstanceOptionTranslation | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
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. | 1 | |||
| FieldInstancePerFormDisplay | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field instance per form display source from database. | 1 | |||
| 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. | 1 | |||
| FieldInstancePerViewMode | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field instance per view mode source class. | 1 | |||
| 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 | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Determines the field instance settings. | 1 | ||
| FieldInstanceSettings | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
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/ |
Tests Drupal\field\Plugin\migrate\process\d6\FieldInstanceSettings. | ||||
| FieldInstanceSettingsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process\d7 | core/ |
Tests Drupal\field\Plugin\migrate\process\d7\FieldInstanceSettings. | ||||
| FieldInstanceTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 field instance source plugin. | ||||
| FieldInstanceTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 field instance source plugin. | ||||
| FieldInstanceWidgetSettings | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Get the field instance widget settings. | |||
| FieldItem | abstract class | Drupal\Core\Field\Plugin\DataType | core/ |
Defines the base plugin for deriving data types for field types. | ||||
| FieldItemBase | abstract class | Drupal\Core\Field | core/ |
An entity field item. | 26 | 28 | ||
| FieldItemDataDefinition | class | Drupal\Core\Field\TypedData | core/ |
A typed data definition class for defining field items. | 7 | |||
| FieldItemDataDefinitionInterface | interface | Drupal\Core\Field\TypedData | core/ |
Interface for field item data definitions. | 1 | 3 | ||
| FieldItemDeriver | class | Drupal\Core\Field\Plugin\DataType\Deriver | core/ |
Provides data type plugins for each existing field type plugin. | 1 | |||
| FieldItemInterface | interface | Drupal\Core\Field | core/ |
Interface for entity field items. | 2 | 36 | 2 | |
| FieldItemList | class | Drupal\Core\Field | core/ |
Represents an entity field; that is, a list of field item objects. | 13 | 16 | ||
| FieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for fields, being lists of field items. | 2 | 154 | ||
| FieldItemListTest | class | Drupal\Tests\Core\Field | core/ |
Tests Drupal\Core\Field\FieldItemList. | ||||
| FieldItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Denormalizes field item object structure by updating the entity field values. | 5 | 3 | 2 | |
| FieldItemNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Converts the Drupal field item object to a JSON:API array structure. | 1 | 2 | ||
| FieldItemNormalizerTest | class | Drupal\Tests\jsonapi\Kernel\Normalizer | core/ |
Tests Drupal\jsonapi\Normalizer\FieldItemNormalizer. | ||||
| FieldItemSerializationTest | class | Drupal\Tests\serialization\Kernel | core/ |
Test field level normalization process. | ||||
| FieldItemTest | class | Drupal\KernelTests\Core\Field | core/ |
Test field item methods. | ||||
| FieldItemTestClass | class | Drupal\Tests\Core\Field | core/ |
A class extending FieldItemBase for testing purposes. | ||||
| FieldKernelTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the generic field handler. | ||||
| FieldKernelTestBase | abstract class | Drupal\Tests\field\Kernel | core/ |
Parent class for Field API unit tests. | 48 | 26 | ||
| FieldLabelDescriptionTranslation | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n field label and description source from database. | 1 | |||
| FieldLabelDescriptionTranslation | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n field label and description source from database. | 1 | |||
| FieldLabelOptionsTrait | trait | Drupal\field | core/ |
Provides a trait for the valid field label options. | 2 | |||
| FieldLanguage | class | Drupal\views\Plugin\views\field | core/ |
Displays the language of an entity. |
Pagination
- Previous page
- Page 77
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.