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 |
---|---|---|---|---|---|---|---|---|
FieldBlock | class | Drupal\layout_builder_fieldblock_test\Plugin\Block | core/ |
Provides test field block to test with Block UI. | ||||
FieldBlockDeriver | class | Drupal\layout_builder\Plugin\Derivative | core/ |
Provides entity field block definitions for every field. | ||||
FieldBlockTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\Block\FieldBlock | ||||
FieldBlockTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\Block\FieldBlock @group Field | ||||
FieldBooleanTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Boolean handler. | ||||
FieldBundle | class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Determines the bundle for a field. | ||||
FieldConfig | class | Drupal\field\Entity | core/ |
Defines the Field entity. | 303 | |||
FieldConfigAccessControlHandler | class | Drupal\field | core/ |
Defines the access control handler for the field config entity type. | 1 | |||
FieldConfigAccessControlHandlerTest | class | Drupal\Tests\field\Unit | core/ |
Tests the field config access controller. | ||||
FieldConfigBase | abstract class | Drupal\Core\Field | core/ |
Base class for configurable field definitions. | 2 | 2 | ||
FieldConfigDeleteForm | class | Drupal\field_ui\Form | core/ |
Provides a form for removing a field from a bundle. | ||||
FieldConfigEditForm | class | Drupal\field_ui\Form | core/ |
Provides a form for the field settings form. | ||||
FieldConfigEntityUnitTest | class | Drupal\Tests\field\Unit | core/ |
@coversDefaultClass \Drupal\field\Entity\FieldConfig @group field | ||||
FieldConfigHalJsonAnonTest | class | Drupal\Tests\hal\Functional\field | core/ |
@group hal @group legacy | ||||
FieldConfigHalJsonBasicAuthTest | class | Drupal\Tests\hal\Functional\field | core/ |
@group hal @group legacy | ||||
FieldConfigHalJsonCookieTest | class | Drupal\Tests\hal\Functional\field | core/ |
@group hal @group legacy | ||||
FieldConfigInterface | interface | Drupal\field | core/ |
Provides an interface defining a field entity. | 1 | 16 | ||
FieldConfigInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for configurable field definitions. | 1 | 3 | ||
FieldConfigJsonAnonTest | class | Drupal\Tests\field\Functional\Rest | core/ |
@group rest | ||||
FieldConfigJsonBasicAuthTest | class | Drupal\Tests\field\Functional\Rest | core/ |
@group rest | ||||
FieldConfigJsonCookieTest | class | Drupal\Tests\field\Functional\Rest | core/ |
@group rest | ||||
FieldConfigListBuilder | class | Drupal\field_ui | core/ |
Provides lists of field config entities. | ||||
FieldConfigListController | class | Drupal\field_ui\Controller | core/ |
Defines a controller to list field instances. | ||||
FieldConfigResourceTestBase | abstract class | Drupal\Tests\field\Functional\Rest | core/ |
9 | 3 | |||
FieldConfigStorage | class | Drupal\field | core/ |
Storage handler for field config. | ||||
FieldConfigStorageBase | abstract class | Drupal\Core\Field | core/ |
Base storage class for field config entities. | 2 | 1 | ||
FieldConfigTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "FieldConfig" config entity type. | ||||
FieldConfigXmlAnonTest | class | Drupal\Tests\field\Functional\Rest | core/ |
@group rest | ||||
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 the count of field data records. | ||||
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. | 2 | 1 | ||
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. | ||||
FieldDiscovery | class | Drupal\migrate_drupal | core/ |
Provides field discovery for Drupal 6 & 7 migrations. | 1 | 1 | 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. |
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.