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 |
|---|---|---|---|---|---|---|---|---|
| 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 | 35 | 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 | 153 | ||
| FieldItemListTest | class | Drupal\Tests\Core\Field | core/ |
Tests Drupal\Core\Field\FieldItemList. | ||||
| FieldItemNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Converts the Drupal field item object to a JSON:API array structure. | 1 | 2 | ||
| FieldItemNormalizer | class | Drupal\serialization\Normalizer | core/ |
Denormalizes field item object structure by updating the entity field values. | 5 | 3 | 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. | 45 | 23 | ||
| 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. | ||||
| FieldLanguageTest | class | Drupal\Tests\language\Kernel\Views | core/ |
Tests the field language handler. | ||||
| FieldLink | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\link\Plugin\migrate\process | core/ |
Transform a pre-Drupal 8 formatted link for use in Drupal 8. | 1 | ||
| FieldLinkTest | class | Drupal\Tests\link\Unit\Plugin\migrate\process | core/ |
Tests the link field migrate process plugin. | ||||
| FieldMigration | class | Drupal\migrate_drupal\Plugin\migrate | core/ |
Migration plugin class for migrations dealing with field config and values. | 2 | 2 | 9 | |
| FieldMissingTypeTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests the exception when missing a field type. | ||||
| FieldNormalizer | class | Drupal\jsonapi\Normalizer | core/ |
Converts the Drupal field structure to a JSON:API array structure. | 1 | 2 | ||
| FieldNormalizer | class | Drupal\serialization\Normalizer | core/ |
Denormalizes data to Drupal field values. | 2 | |||
| FieldNumericTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Numeric handler. | ||||
| FieldOptionTranslation | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n field option labels source from database. | 1 | 1 | ||
| FieldOptionTranslation | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n field option label source from database. | 1 | |||
| FieldOptionTranslation | 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 allowed values translation for select lists. | |||
| FieldOptionTranslation | 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 allowed values translation for select lists. | |||
| FieldOptionTranslationTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests the field option translation source plugin. | 1 | |||
| FieldOptionTranslationTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d7 | core/ |
Tests the field option translation source plugin. | ||||
| FieldOrLanguageJoin | class | Drupal\views\Plugin\views\join | core/ |
Implementation for the "field OR language" join. | 1 | |||
| FieldOrLanguageJoinTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the "field OR language" join plugin. | ||||
| FieldPluginBase | abstract class | Drupal\views\Plugin\views\field | core/ |
Base class for views fields. | 34 | 13 | ||
| FieldPluginBase | abstract class | Drupal\migrate_drupal\Plugin\migrate\field | core/ |
The base class for all field plugins. | 18 | 17 | ||
| FieldPluginBaseTest | class | Drupal\Tests\views\Unit\Plugin\field | core/ |
Tests Drupal\views\Plugin\views\field\FieldPluginBase. | ||||
| FieldPluginBaseTestField | class | Drupal\Tests\views\Unit\Plugin\field | core/ |
Test class for testing field plugins. | ||||
| FieldPreprocess | class | Drupal\Core\Field | core/ |
Field theme preprocess. | 1 | 2 |
Pagination
- Previous page
- Page 76
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.