Classes, traits, and interfaces - 11.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 1531
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ConfigEntityNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Tests Drupal\serialization\Normalizer\ConfigEntityNormalizer. | ||||
| ConfigEntityNormalizeTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the listing of configuration entities. | ||||
| ConfigEntityQueryTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests Config Entity Query functionality. | ||||
| ConfigEntityResourceTestBase | abstract class | Drupal\Tests\rest\Functional\EntityResource | core/ |
Resource test base class for config entities. | 34 | 35 | ||
| ConfigEntityResourceTestBase | abstract class | Drupal\Tests\jsonapi\Functional | core/ |
Resource test base class for config entities. | 30 | 2 | ||
| ConfigEntityStaticCacheTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the entity static cache when used by config entities. | ||||
| ConfigEntityStaticCacheTestHooks | class | Drupal\config_entity_static_cache_test\Hook | core/ |
Hook implementations for config_entity_static_cache_test. | ||||
| ConfigEntityStatusTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests configuration entity status functionality. | ||||
| ConfigEntityStatusUITest | class | Drupal\Tests\config\Functional | core/ |
Tests configuration entity status UI functionality. | ||||
| ConfigEntityStorage | class | Drupal\Core\Config\Entity | core/ |
Defines the storage class for configuration entities. | 9 | 17 | ||
| ConfigEntityStorageClassException | class | Drupal\Core\Config\Entity\Exception | core/ |
Thrown when a storage class is not an instance of ConfigEntityStorage. | 2 | |||
| ConfigEntityStorageInterface | interface | Drupal\Core\Config\Entity | core/ |
Provides an interface for configuration entity storage. | 5 | 9 | ||
| ConfigEntityStorageTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests configuration entity storage. | ||||
| ConfigEntityStorageTest | class | Drupal\Tests\Core\Config\Entity | core/ |
Tests Drupal\Core\Config\Entity\ConfigEntityStorage. | ||||
| ConfigEntityTest | class | Drupal\Tests\migrate\Kernel\Plugin\source | core/ |
Tests the config source plugin. | ||||
| ConfigEntityTest | class | Drupal\Tests\config\FunctionalJavascript | core/ |
Tests the Config operations through the UI. | ||||
| ConfigEntityTest | class | Drupal\Tests\config\Functional | core/ |
Tests configuration entities. | ||||
| ConfigEntityType | class | Drupal\Core\Entity\Attribute | core/ |
Defines a configuration entity type attribute object. | 35 | |||
| ConfigEntityType | class | Drupal\Core\Entity\Annotation | core/ |
Defines a config entity type annotation object. | ||||
| ConfigEntityType | class | Drupal\Core\Config\Entity | core/ |
Provides an implementation of a configuration entity type and its metadata. | 5 | |||
| ConfigEntityTypeInterface | interface | Drupal\Core\Config\Entity | core/ |
Provides an interface for a configuration entity type and its metadata. | 1 | 12 | ||
| ConfigEntityTypeTest | class | Drupal\Tests\Core\Config\Entity | core/ |
Tests Drupal\Core\Config\Entity\ConfigEntityType. | ||||
| ConfigEntityUnitTest | class | Drupal\KernelTests\Core\Config | core/ |
Unit tests for configuration entity base methods. | ||||
| ConfigEntityUpdater | class | Drupal\Core\Config\Entity | core/ |
A utility class to make updating configuration entities simple. | 10 | |||
| ConfigEntityUpdaterTest | class | Drupal\KernelTests\Core\Config\Entity | core/ |
Tests \Drupal\Core\Config\Entity\ConfigEntityUpdater. | ||||
| ConfigEntityValidationTestBase | abstract class | Drupal\KernelTests\Core\Config | core/ |
Base class for testing validation of config entities. | 30 | 30 | ||
| ConfigEvents | final class | Drupal\Core\Config | core/ |
Defines events for the configuration system. | 24 | |||
| ConfigEventsTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests events fired on configuration objects. | ||||
| ConfigException | class | Drupal\Core\Config | core/ |
A base exception thrown in any configuration system operations. | 13 | 3 | ||
| ConfigExistsConstraint | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Checks that the value is the name of an existing config object. | 1 | |||
| ConfigExistsConstraintValidator | class | Drupal\Core\Config\Plugin\Validation\Constraint | core/ |
Validates that a given config object exists. | 1 | |||
| ConfigExistsConstraintValidatorTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests the ConfigExists constraint validator. | ||||
| ConfigExportForm | class | Drupal\config\Form | core/ |
Defines the configuration export form. | 1 | |||
| ConfigExportImportUITest | class | Drupal\Tests\config\Functional | core/ |
Tests the user interface for importing/exporting configuration. | ||||
| ConfigExportStorageTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests configuration export storage. | ||||
| ConfigExportTest | class | Drupal\Tests\config\FunctionalJavascript | core/ |
Tests the config export form. | ||||
| ConfigExportUITest | class | Drupal\Tests\config\Functional | core/ |
Tests the user interface for exporting configuration. | ||||
| ConfigFactory | class | Drupal\Core\Config | core/ |
Defines the configuration object factory. | 3 | 2 | ||
| ConfigFactoryInterface | interface | Drupal\Core\Config | core/ |
Defines the interface for a configuration object factory. | 1 | 173 | ||
| ConfigFactoryOverrideBase | abstract class | Drupal\Core\Config | core/ |
Defines a base event listener implementation configuration overrides. | 2 | 2 | ||
| ConfigFactoryOverrideBaseTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\ConfigFactoryOverrideBase. | ||||
| ConfigFactoryOverrideInterface | interface | Drupal\Core\Config | core/ |
Defines the interface for a configuration factory override object. | 9 | 9 | ||
| ConfigFactoryTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\ConfigFactory. | ||||
| ConfigFieldDefinitionTest | class | Drupal\Tests\field\Kernel | core/ |
Tests exposing field definitions for configurable fields. | ||||
| ConfigFieldMapper | class | Drupal\config_translation | core/ |
Configuration mapper for fields. | 1 | |||
| ConfigFieldMapperTest | class | Drupal\Tests\config_translation\Unit | core/ |
Tests the functionality provided by the configuration field mapper. | ||||
| ConfigFileContentTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests reading and writing of configuration files. | ||||
| ConfigFormBase | abstract class | Drupal\Core\Form | core/ |
Base class for implementing system configuration forms. | 33 | 34 | ||
| ConfigFormBaseTrait | trait | Drupal\Core\Form | core/ |
Provides access to configuration for forms. | 5 | |||
| ConfigFormBaseTraitTest | class | Drupal\Tests\Core\Form | core/ |
Tests Drupal\Core\Form\ConfigFormBaseTrait. |
Pagination
- Previous page
- Page 31
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.