Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| Fid | class | Drupal\file\Plugin\views\argument | core/ |
Argument handler to accept multiple file ids. | ||||
| Field | class | Drupal\field\Plugin\migrate\source\d6 | core/ |
Drupal 6 field source from database. | 1 | 1 | ||
| Field | class | Drupal\field\Plugin\migrate\source\d7 | core/ |
Drupal 7 field source from database. | 1 | 1 | ||
| FieldableEntity | abstract class | Drupal\migrate_drupal\Plugin\migrate\source\d7 | core/ |
Base class for D7 source plugins which need to collect field values. | 8 | 8 | ||
| FieldableEntityDefinitionUpdateTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests EntityDefinitionUpdateManager's fieldable entity update functionality. | ||||
| FieldableEntityInterface | interface | Drupal\Core\Entity | core/ |
Interface for entities having fields. | 1 | 93 | 1 | |
| FieldableEntityNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
A trait for providing fieldable entity normalization/denormalization methods. | ||||
| FieldableEntityStorageInterface | interface | Drupal\Core\Entity | core/ |
A storage that supports entity types with field definitions. | 1 | 3 | ||
| FieldAccessTest | class | Drupal\Tests\field\Functional | core/ |
Tests Field access. | ||||
| FieldAccessTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests Field level access hooks. | ||||
| FieldApiDataTest | class | Drupal\Tests\views\Kernel | core/ |
Tests the Field Views data. | ||||
| FieldAPIHandlerTrait | trait | Drupal\views | core/ |
A trait containing helper methods for field definitions. | 8 | |||
| FieldAttachOtherTest | class | Drupal\Tests\field\Kernel | core/ |
Tests other Field API functions. | ||||
| FieldAttachStorageTest | class | Drupal\Tests\field\Kernel | core/ |
Tests storage-related Field Attach API functions. | ||||
| FieldBlock | class | Drupal\layout_builder\Plugin\Block | core/ |
Provides a block that renders a field from an entity. | 1 | 3 | ||
| FieldBlock | class | Drupal\layout_builder_field_block_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. | 2 | |||
| FieldBlockDeriverTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests field block plugin derivatives. | ||||
| FieldBlockTest | class | Drupal\Tests\layout_builder\FunctionalJavascript | core/ |
Tests Drupal\layout_builder\Plugin\Block\FieldBlock. | ||||
| FieldBlockTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests Drupal\layout_builder\Plugin\Block\FieldBlock. | ||||
| FieldBooleanTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the core Drupal\views\Plugin\views\field\Boolean handler. | ||||
| FieldBundle | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\field\Plugin\migrate\process\d7 | core/ |
Determines the bundle for a field. | |||
| FieldConfig | class | Drupal\field\Entity | core/ |
Defines the Field entity. | 345 | |||
| FieldConfigAccessControlHandler | class | Drupal\field | core/ |
Defines the access control handler for the field config entity type. | 2 | |||
| FieldConfigAccessControlHandlerTest | class | Drupal\Tests\field\Unit | core/ |
Tests the field config access controller. | ||||
| FieldConfigAddController | final class | Drupal\field_ui\Controller | core/ |
Controller for building the field instance form. | 1 | |||
| FieldConfigBase | abstract class | Drupal\Core\Field | core/ |
Base class for configurable field definitions. | 2 | 3 | ||
| 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. | 2 | |||
| FieldConfigEditFormTest | class | Drupal\Tests\field_ui\Unit | core/ |
Tests Drupal\field_ui\Form\FieldConfigEditForm. | ||||
| FieldConfigEntityUnitTest | class | Drupal\Tests\field\Unit | core/ |
Tests Drupal\field\Entity\FieldConfig. | ||||
| FieldConfigInterface | interface | Drupal\field | core/ |
Provides an interface defining a field entity. | 1 | 20 | ||
| FieldConfigInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for configurable field definitions. | 1 | 5 | ||
| FieldConfigJsonAnonTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Config Json Anon. | ||||
| FieldConfigJsonBasicAuthTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Config Json Basic Auth. | ||||
| FieldConfigJsonCookieTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Config Json Cookie. | ||||
| 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/ |
Resource test base for the FieldConfig entity. | 6 | |||
| FieldConfigStorage | class | Drupal\field | core/ |
Storage handler for field config. | 1 | |||
| 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. | ||||
| FieldConfigValidationTest | class | Drupal\Tests\field\Kernel\Entity | core/ |
Tests validation of field_config entities. | ||||
| FieldConfigXmlAnonTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Config Xml Anon. | ||||
| FieldConfigXmlBasicAuthTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Config Xml Basic Auth. | ||||
| FieldConfigXmlCookieTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Config Xml Cookie. | ||||
| 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. |
Pagination
- Previous page
- Page 75
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.