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 |
---|---|---|---|---|---|---|---|---|
FieldInstanceTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 field instance source plugin. | ||||
FieldInstanceWidgetSettings | 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 | 34 | 2 | |
FieldItemList | class | Drupal\Core\Field | core/ |
Represents an entity field; that is, a list of field item objects. | 13 | 15 | ||
FieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for fields, being lists of field items. | 2 | 146 | ||
FieldItemListTest | class | Drupal\Tests\Core\Field | core/ |
@coversDefaultClass \Drupal\Core\Field\FieldItemList[[api-linebreak]] @group Field | ||||
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/ |
@coversDefaultClass \Drupal\jsonapi\Normalizer\FieldItemNormalizer[[api-linebreak]] @group jsonapi | ||||
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. | 42 | 20 | ||
FieldLabelDescriptionTranslation | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 i18n field label and description source from database. | ||||
FieldLabelDescriptionTranslation | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n field label and description source from database. | ||||
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. | ||||
FieldLayoutBuilder | class | Drupal\field_layout | core/ |
Builds a field layout. | 3 | |||
FieldLayoutBuilderTest | class | Drupal\Tests\field_layout\Unit | core/ |
@coversDefaultClass \Drupal\field_layout\FieldLayoutBuilder[[api-linebreak]] @group field_layout | ||||
FieldLayoutEntityDisplayFormTrait | trait | Drupal\field_layout\Form | core/ |
Provides shared code for entity display forms. | ||||
FieldLayoutEntityDisplayTest | class | Drupal\Tests\field_layout\Kernel | core/ |
@coversDefaultClass \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait[[api-linebreak]] @group field_layout | ||||
FieldLayoutEntityDisplayTrait | trait | Drupal\field_layout\Entity | core/ |
Provides shared code for entity displays. | ||||
FieldLayoutEntityFormDisplay | class | Drupal\field_layout\Entity | core/ |
Provides an entity form display entity that has a layout. | 1 | |||
FieldLayoutEntityFormDisplayEditForm | class | Drupal\field_layout\Form | core/ |
Edit form for the EntityFormDisplay entity type. | 1 | |||
FieldLayoutEntityViewDisplay | class | Drupal\field_layout\Entity | core/ |
Provides an entity view display entity that has a layout. | 2 | |||
FieldLayoutEntityViewDisplayEditForm | class | Drupal\field_layout\Form | core/ |
Edit form for the EntityViewDisplay entity type. | 1 | |||
FieldLayoutTest | class | Drupal\Tests\field_layout\FunctionalJavascript | core/ |
Tests using field layout for entity displays. | ||||
FieldLayoutTest | class | Drupal\Tests\field_layout\Functional | core/ |
Tests using field layout for entity displays. | ||||
FieldLayoutUninstallTest | class | Drupal\Tests\field_layout\Kernel | core/ |
@group field_layout | ||||
FieldLink | 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/ |
@group Link | ||||
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 | |||
FieldOptionTranslation | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n field option label source from database. | ||||
FieldOptionTranslation | class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Determines the allowed values translation for select lists. | ||||
FieldOptionTranslation | 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 |
Pagination
- Previous page
- Page 70
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.