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 |
---|---|---|---|---|---|---|---|---|
FieldConfigXmlBasicAuthTest | class | Drupal\Tests\field\Functional\Rest | core/ |
@group rest | ||||
FieldConfigXmlCookieTest | class | Drupal\Tests\field\Functional\Rest | core/ |
@group rest | ||||
FieldCounterTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the Drupal\views\Plugin\views\field\Counter handler. | ||||
FieldCounterTest | class | Drupal\Tests\rest\Functional\Views | core/ |
Tests the display of counter field. | ||||
FieldCrudTest | class | Drupal\Tests\field\Kernel | core/ |
Create field entities by attaching fields to entities. | ||||
FieldCustomTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Custom handler. | ||||
FieldDataCountTest | class | Drupal\Tests\field\Kernel | core/ |
Tests counting field data records and the hasData() method on FieldStorageConfig entity. | ||||
FieldDateTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Date handler. | ||||
FieldDefaultValueCallbackProvider | class | Drupal\field_test | core/ |
Helper class for \Drupal\Tests\field\Functional\FieldDefaultValueCallbackTest. | ||||
FieldDefaultValueCallbackTest | class | Drupal\Tests\field\Functional | core/ |
Tests the default value callback. | ||||
FieldDefinition | class | Drupal\Core\Field | core/ |
A class for defining entity field definitions. | 4 | |||
FieldDefinitionIntegrityTest | class | Drupal\Tests\field\Kernel | core/ |
Tests the integrity of field API plugin definitions. | ||||
FieldDefinitionInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for entity field definitions. | 5 | 132 | ||
FieldDefinitionListener | class | Drupal\Core\Field | core/ |
Reacts to field definition CRUD on behalf of the Entity system. | 1 | 2 | ||
FieldDefinitionListenerInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for reacting to field creation, deletion, and updates. | 3 | 2 | ||
FieldDefinitionListenerTest | class | Drupal\Tests\Core\Field | core/ |
@coversDefaultClass \Drupal\Core\Field\FieldDefinitionListener @group Field | ||||
FieldDefinitionTest | class | Drupal\Tests\Core\Entity | core/ |
Unit test for the FieldDefinition class. | ||||
FieldDeprecateAllowedTagsXssTraitClass | class | Drupal\Tests\Core\Field | core/ |
Class FieldDeprecateAllowedTagsXssTraitClass | ||||
FieldDiscovery | class | Drupal\migrate_drupal | core/ |
Provides field discovery for Drupal 6 & 7 migrations. | 1 | 2 | 2 | |
FieldDiscoveryInterface | interface | Drupal\migrate_drupal | core/ |
Provides field discovery for Drupal 6 & 7 migrations. | 1 | 8 | ||
FieldDiscoveryTest | class | Drupal\Tests\migrate_drupal\Unit | core/ |
Tests the FieldDiscovery Class. | ||||
FieldDiscoveryTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests FieldDiscovery service against Drupal 6. | ||||
FieldDiscoveryTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Test FieldDiscovery Service against Drupal 7. | ||||
FieldDiscoveryTestClass | class | Drupal\field_discovery_test | core/ |
A test class to expose protected methods. | 4 | |||
FieldDiscoveryTestTrait | trait | Drupal\Tests\migrate_drupal\Traits | core/ |
Helper functions to test field discovery. | 2 | |||
FieldDisplayTest | class | Drupal\Tests\field\Kernel | core/ |
Tests Field display. | ||||
FieldDropbuttonTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Dropbutton handler. | ||||
FieldDropButtonTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests the dropbutton field handler. | ||||
FieldEntityLinkBaseTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\LinkBase handler. | ||||
FieldEntityLinkTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\EntityOperations handler. | ||||
FieldEntityOperationsTest | class | Drupal\Tests\views\Functional\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\EntityOperations handler. | ||||
FieldEntityTest | class | Drupal\Tests\views\Functional\Entity | core/ |
Tests the field plugin base integration with the entity system. | ||||
FieldEntityTranslationTest | class | Drupal\Tests\views\Functional\Entity | core/ |
Tests the rendering of fields (base fields) and their translations. | ||||
FieldException | class | Drupal\Core\Field | core/ |
Base class for all exceptions thrown by the Entity Field API functions. | 1 | 10 | ||
FieldFieldAccessTestBase | abstract class | Drupal\Tests\views\Kernel\Handler | core/ |
Provides a base class for base field access in views. | 8 | 7 | ||
FieldFieldTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Provides some integration tests for the Field handler. | ||||
FieldFile | class | Drupal\file\Plugin\migrate\process\d6 | core/ |
Plugin annotation @MigrateProcessPlugin( id = "d6_field_file" ) | 1 | 1 | ||
FieldFileSizeTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\FileSize handler. | ||||
FieldFileTest | class | Drupal\Tests\file\Unit\Plugin\migrate\process\d6 | core/ |
@group file | ||||
FieldFilteredMarkup | final class | Drupal\Core\Field | core/ |
Defines an object that passes safe strings through the Field system. | 13 | |||
FieldFilteredMarkupTest | class | Drupal\Tests\Core\Field | core/ |
@coversDefaultClass \Drupal\Core\Field\FieldFilteredMarkup @group Field | ||||
FieldFormatter | class | Drupal\Core\Field\Annotation | core/ |
Defines a FieldFormatter annotation object. | ||||
FieldFormatterSettingsDefaults | class | Drupal\field\Plugin\migrate\process\d6 | core/ |
Set the default field settings. | ||||
FieldFormatterTest | class | Drupal\Tests\field\Kernel | core/ |
Tests for field formatters. | ||||
FieldFormButtonTest | class | Drupal\views_test_data\Plugin\views\field | core/ |
A handler to provide a field that is completely custom by the administrator. | ||||
FieldFormCommand | class | Drupal\quickedit\Ajax | core/ |
AJAX command for passing a rendered field form to Quick Edit's JavaScript app. | 1 | |||
FieldFormSavedCommand | class | Drupal\quickedit\Ajax | core/ |
AJAX command to indicate a field was saved into PrivateTempStore without validation errors and pass the rerendered field to Quick Edit's JavaScript app. | 1 | |||
FieldFormValidationErrorsCommand | class | Drupal\quickedit\Ajax | core/ |
AJAX command to indicate a field form was attempted to be saved but failed validation and pass the validation errors. | 1 | |||
Fieldgroup | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a group of form elements. | ||||
FieldGroupRowsTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the "Display all values in the same row" setting. |
Pagination
- Previous page
- Page 65
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.