Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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/ |
Plugin annotation @MigrateProcessPlugin( id = "d6_field_field_settings" ) | 1 | |||
FieldInstanceSettings | class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Plugin annotation @MigrateProcessPlugin( id = "d7_field_instance_settings" ) | 1 | |||
FieldInstanceSettingsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process\d6 | core/ |
@coversDefaultClass \Drupal\field\Plugin\migrate\process\d6\FieldInstanceSettings @group field | ||||
FieldInstanceSettingsTest | class | Drupal\Tests\field\Unit\Plugin\migrate\process\d7 | core/ |
@coversDefaultClass \Drupal\field\Plugin\migrate\process\d7\FieldInstanceSettings @group field | ||||
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 | 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. | 24 | 26 | ||
FieldItemDataDefinition | class | Drupal\Core\Field\TypedData | core/ |
A typed data definition class for defining field items. | 6 | |||
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. | ||||
FieldItemInterface | interface | Drupal\Core\Field | core/ |
Interface for entity field items. | 2 | 36 | ||
FieldItemList | class | Drupal\Core\Field | core/ |
Represents an entity field; that is, a list of field item objects. | 10 | 12 | ||
FieldItemListInterface | interface | Drupal\Core\Field | core/ |
Interface for fields, being lists of field items. | 2 | 160 | ||
FieldItemListTest | class | Drupal\Tests\Core\Field | core/ |
@coversDefaultClass \Drupal\Core\Field\FieldItemList @group Field | ||||
FieldItemNormalizer | class | Drupal\hal\Normalizer | core/ |
Converts the Drupal field item object structure to HAL array structure. | 2 | 1 | 2 | |
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 @group jsonapi | ||||
FieldItemSerializationTest | class | Drupal\Tests\serialization\Kernel | core/ |
Test field level normalization process. | ||||
FieldItemSerializationTest | class | Drupal\Tests\hal\Kernel\serialization | core/ |
Test field level normalization process. | ||||
FieldItemTest | class | Drupal\KernelTests\Core\Field | core/ |
Test field item methods. | ||||
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. | 43 | 21 | ||
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. | ||||
FieldLanguageTest | class | Drupal\Tests\language\Kernel\Views | core/ |
Tests the field language handler. | ||||
FieldLayoutBuilder | class | Drupal\field_layout | core/ |
Builds a field layout. | 2 | |||
FieldLayoutBuilderTest | class | Drupal\Tests\field_layout\Unit | core/ |
@coversDefaultClass \Drupal\field_layout\FieldLayoutBuilder @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 @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 |
Pagination
- Previous page
- Page 67
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.