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 |
|---|---|---|---|---|---|---|---|---|
| FieldStorageConfigStorage | class | Drupal\field | core/ |
Storage handler for "field storage" configuration entities. | 1 | |||
| FieldStorageConfigTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "FieldStorageConfig" config entity type. | ||||
| FieldStorageConfigUpdateForbiddenException | class | Drupal\field | core/ |
Exception class thrown by hook_field_storage_config_update_forbid(). | ||||
| FieldStorageConfigValidationTest | class | Drupal\Tests\field\Kernel\Entity | core/ |
Tests validation of field_storage_config entities. | ||||
| FieldStorageConfigXmlAnonTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Storage Config Xml Anon. | ||||
| FieldStorageConfigXmlBasicAuthTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Storage Config Xml Basic Auth. | ||||
| FieldStorageConfigXmlCookieTest | class | Drupal\Tests\field\Functional\Rest | core/ |
Tests Field Storage Config Xml Cookie. | ||||
| FieldStorageCreateCheckDeprecationTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests the field storage create check subscriber. | ||||
| FieldStorageCreateCheckSubscriber | final class | Drupal\Core\Test\EventSubscriber | core/ |
Response subscriber to field storage events. | 2 | |||
| FieldStorageCreateCheckTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests the field storage create check subscriber. | ||||
| FieldStorageCreationTrait | trait | Drupal\field_ui\Form | core/ |
Provides common functionality for adding or re-using a field. | ||||
| FieldStorageCrudTest | class | Drupal\Tests\field\Kernel | core/ |
Tests field storage create, read, update, and delete. | ||||
| FieldStorageDefinition | class | Drupal\entity_test | core/ |
A custom field storage definition class. | 5 | |||
| FieldStorageDefinitionEvent | class | Drupal\Core\Field | core/ |
Defines a base class for all field storage definition events. | 1 | |||
| FieldStorageDefinitionEvents | final class | Drupal\Core\Field | core/ |
Contains all events thrown while handling field storage definitions. | 3 | |||
| FieldStorageDefinitionEventSubscriberTrait | trait | Drupal\Core\Field | core/ |
Helper methods for FieldStorageDefinitionListenerInterface. | 1 | |||
| FieldStorageDefinitionInterface | interface | Drupal\Core\Field | core/ |
Defines an interface for entity field storage definitions. | 3 | 185 | ||
| FieldStorageDefinitionListener | class | Drupal\Core\Field | core/ |
Reacts to field storage definition CRUD on behalf of the Entity system. | 2 | |||
| FieldStorageDefinitionListenerInterface | interface | Drupal\Core\Field | core/ |
Interface for field storage definition create, delete and update operations. | 4 | 4 | ||
| FieldStorageDefinitionUpdateForbiddenException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown when a storage definition update is forbidden. | 11 | |||
| FieldStorageEntityTypeDependencyTestHook | class | Drupal\field_storage_entity_type_dependency_test\Hook | core/ |
Hook implementations. | ||||
| FieldStorageGetPropertyDefinitionTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests getting property definitions from field storages. | ||||
| FieldStorageIndexesConstraint | class | Drupal\field\Plugin\Validation\Constraint | core/ |
Validates the structure of field storage index definitions. | 1 | |||
| FieldStorageIndexesConstraintValidator | class | Drupal\field\Plugin\Validation\Constraint | core/ |
Validates FieldStorageIndexesConstraint. | 1 | |||
| FieldStorageIndexesValidationTest | class | Drupal\Tests\field\Kernel\Config | core/ |
Tests validation for field storage indexes config. | ||||
| FieldStorageReuseForm | class | Drupal\field_ui\Form | core/ |
Provides a form for the "field storage" add page. | ||||
| FieldSyncWidget | class | Drupal\content_translation | core/ |
Field Sync Widget for content_translation. | 2 | |||
| FieldTest | class | Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler | core/ |
Tests the field handler UI. | ||||
| FieldTest | class | Drupal\views_test_data\Plugin\views\field | core/ |
A test field handler. | ||||
| FieldTest | class | Drupal\Tests\views\Unit\Plugin\field | core/ |
Tests Drupal\views\Plugin\views\field\EntityField. | ||||
| FieldTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d6 | core/ |
Tests D6 field source plugin. | ||||
| FieldTest | class | Drupal\Tests\field\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 field source plugin. | ||||
| FieldTestBase | abstract class | Drupal\Tests\field\Functional\Views | core/ |
Provides some helper methods for testing fieldapi integration into views. | 1 | |||
| FieldTestBase | abstract class | Drupal\Tests\field\Functional | core/ |
Parent class for Field API tests. | 10 | 4 | ||
| FieldTestBooleanAccessDeniedHooks | class | Drupal\field_test_boolean_access_denied\Hook | core/ |
Hook implementations for field_test_boolean_access_denied. | ||||
| FieldTestEntityField | class | Drupal\Tests\views\Unit\Plugin\field | core/ |
Stub class for testing EntityField methods. | ||||
| FieldTestEntityHooks | class | Drupal\field_test\Hook | core/ |
Hook implementations for field_test. | ||||
| FieldTestFieldHooks | class | Drupal\field_test\Hook | core/ |
Hook implementations for field_test. | ||||
| FieldTestHelper | class | Drupal\field_test | core/ |
Helper class for testing fields. | 9 | |||
| FieldTestHooks | class | Drupal\field_test\Hook | core/ |
Hook implementations for field_test. | ||||
| FieldTestItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'field_test' entity field type. | 1 | 1 | ||
| FieldThirdPartyTestHooks | class | Drupal\field_third_party_test\Hook | core/ |
Hook implementations for field_third_party_test. | ||||
| FieldTimeIntervalTest | class | Drupal\Tests\views\Kernel\Handler | core/ |
Tests the time interval handler. | ||||
| FieldTranslationSqlStorageTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests Field translation SQL Storage. | ||||
| FieldTranslationSynchronizer | class | Drupal\content_translation | core/ |
Provides field translation synchronization capabilities. | 1 | 2 | ||
| FieldTranslationSynchronizerInterface | interface | Drupal\content_translation | core/ |
Provides field translation synchronization capabilities. | 1 | 1 | ||
| FieldType | class | Drupal\Core\Field\Attribute | core/ |
Defines a FieldType attribute. | 57 | |||
| FieldType | class | Drupal\Core\Field\Annotation | core/ |
Defines a FieldType annotation object. | ||||
| FieldType | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\field\Plugin\migrate\process | core/ |
Determines the field type for a field. | |||
| FieldTypeCategoriesIntegrationTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests field UI integration with field type categories for loading libraries. |
Pagination
- Previous page
- Page 79
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.