Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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/ |
Gets field label and description translations. | ||||
FieldLabelDescriptionTranslation | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Gets field label and description translations. | ||||
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 | ||||
FieldLeft | class | Drupal\migrate_state_active_test\Plugin\migrate\field\d7 | core/ |
Field migration for testing migration states. | ||||
FieldLink | class | Drupal\link\Plugin\migrate\process | core/ |
Transform a pre-Drupal 8 formatted link for use in Drupal 8. | 2 | 3 | ||
FieldLink | in drupal:8.4.0 and is removed from drupal:9.0.0. Use \Drupal\link\Plugin\migrate\process\FieldLink instead. |
class | Drupal\link\Plugin\migrate\process\d6 | core/ |
Plugin annotation @MigrateProcessPlugin( id = "d6_field_link" ) | 1 | ||
FieldLinkTest | class | Drupal\Tests\link\Unit\Plugin\migrate\process | core/ |
@group Link | ||||
FieldLinkTest | class | Drupal\Tests\link\Unit\Plugin\migrate\process\d6 | core/ |
@group Link @group legacy | ||||
FieldMigration | class | Drupal\migrate_drupal\Plugin\migrate | core/ |
Migration plugin class for migrations dealing with field config and values. | 3 | 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. | 1 | 1 | 2 | |
FieldNormalizer | class | Drupal\hal\Normalizer | core/ |
Converts the Drupal field structure to HAL array structure. | 1 | 2 | ||
FieldNormalizerDenormalizeExceptionsUnitTest | class | Drupal\Tests\hal\Unit | core/ |
@coversDefaultClass \Drupal\hal\Normalizer\FieldNormalizer @group hal | ||||
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/ |
Gets field option label translations. | 1 | |||
FieldOptionTranslation | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Gets field option label translations. | ||||
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 | |||
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. | 35 | 14 | ||
FieldPluginBase | abstract class | Drupal\migrate_drupal\Plugin\migrate\field | core/ |
The base class for all field plugins. | 22 | 20 | ||
FieldPluginBaseTest | class | Drupal\Tests\views\Unit\Plugin\field | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\field\FieldPluginBase @group views | ||||
FieldPluginBaseTestField | class | Drupal\Tests\views\Unit\Plugin\field | core/ |
|||||
FieldRdfaDatatypeCallbackTest | class | Drupal\Tests\rdf\Kernel\Field | core/ |
Tests the RDFa output of a text field formatter with a datatype callback. | ||||
FieldRdfaTestBase | abstract class | Drupal\Tests\rdf\Kernel\Field | core/ |
9 | ||||
FieldRenderedEntityTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\RenderedEntity handler. | ||||
FieldRenderedEntityTranslationTest | class | Drupal\Tests\views\Functional\Entity | core/ |
Tests the rendering of the 'rendered_entity' field and translations. | ||||
FieldResolver | class | Drupal\jsonapi\Context | core/ |
A service that evaluates external path expressions against Drupal fields. | 5 | 2 | ||
FieldResolverTest | class | Drupal\Tests\jsonapi\Kernel\Context | core/ |
@coversDefaultClass \Drupal\jsonapi\Context\FieldResolver @group jsonapi | ||||
FieldRight | class | Drupal\migrate_state_active_test\Plugin\migrate\field\d7 | core/ |
Field migration for testing migration states. | ||||
Fields | class | Drupal\views\Plugin\views\row | core/ |
The basic 'fields' row plugin | 1 | 2 | ||
FieldSchemaDataUninstallUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the upgrade path after fixing field schema data uninstallation. |
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.