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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ConfigDiffTest | class | Drupal\KernelTests\Core\Config | core/ |
Calculating the difference between two sets of configuration. | ||||
ConfigDirectoryNotDefinedException | class | Drupal\Core\Config | core/ |
An exception thrown when the config sync directory is not defined. | 1 | |||
ConfigDraggableListBuilderTest | class | Drupal\Tests\config\Functional | core/ |
Tests draggable list builder. | ||||
ConfigDuplicateUUIDException | class | Drupal\Core\Config | core/ |
Exception thrown when a config object UUID causes a conflict. | 3 | |||
ConfigEntity | class | Drupal\migrate\Plugin\migrate\source | core/ |
Drupal configuration source from database. | ||||
ConfigEntityAdapter | class | Drupal\Core\Entity\Plugin\DataType | core/ |
Enhances EntityAdapter for config entities. | 5 | |||
ConfigEntityAdapterTest | class | Drupal\KernelTests\Core\Entity | core/ |
Tests entity adapter for configuration entities. | ||||
ConfigEntityBase | abstract class | Drupal\Core\Config\Entity | core/ |
Defines a base configuration entity class. | 27 | 27 | ||
ConfigEntityBaseUnitTest | class | Drupal\Tests\Core\Config\Entity | core/ |
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityBase[[api-linebreak]] @group Config | ||||
ConfigEntityBaseWithPluginCollections | abstract class | Drupal\Tests\Core\Config\Entity\Fixtures | core/ |
Enables testing of dependency calculation. | 1 | 1 | ||
ConfigEntityBundleBase | abstract class | Drupal\Core\Config\Entity | core/ |
A base class for config entity types that act as bundles. | 9 | 9 | ||
ConfigEntityDenormalizer | final class | Drupal\jsonapi\Normalizer | core/ |
Converts the Drupal config entity object to a JSON:API array structure. | 2 | |||
ConfigEntityDependency | class | Drupal\Core\Config\Entity | core/ |
Provides a value object to discover configuration dependencies. | 3 | |||
ConfigEntityDependencyTest | class | Drupal\Tests\Core\Config\Entity | core/ |
Tests the ConfigEntityDependency class. | ||||
ConfigEntityFormOverrideTest | class | Drupal\Tests\config\Functional | core/ |
Tests that config overrides do not bleed through in entity forms and lists. | ||||
ConfigEntityIdLengthException | class | Drupal\Core\Config\Entity\Exception | core/ |
Defines an exception thrown when a configuration entity ID is too long. | 5 | |||
ConfigEntityImportTest | class | Drupal\Tests\system\Kernel\Entity | core/ |
Tests ConfigEntity importing. | ||||
ConfigEntityInterface | interface | Drupal\Core\Config\Entity | core/ |
Defines a common interface for configuration entities. | 31 | 73 | ||
ConfigEntityListBuilder | class | Drupal\Core\Config\Entity | core/ |
Defines the default class to build a listing of configuration entities. | 20 | 20 | ||
ConfigEntityListMultilingualTest | class | Drupal\Tests\config\Functional | core/ |
Tests the listing of configuration entities in a multilingual scenario. | ||||
ConfigEntityListTest | class | Drupal\Tests\config\Functional | core/ |
Tests the listing of configuration entities. | ||||
ConfigEntityMapper | class | Drupal\config_translation | core/ |
Configuration mapper for configuration entities. | 2 | 2 | ||
ConfigEntityMapperInterface | interface | Drupal\config_translation | core/ |
Defines an interface for configuration entity mappers. | 1 | 1 | ||
ConfigEntityMapperTest | class | Drupal\Tests\config_translation\Unit | core/ |
Tests the functionality provided by the configuration entity mapper. | ||||
ConfigEntityNormalizer | class | Drupal\serialization\Normalizer | core/ |
Normalizes/denormalizes Drupal config entity objects into an array structure. | 1 | 2 | 2 | |
ConfigEntityNormalizerTest | class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
@coversDefaultClass \Drupal\serialization\Normalizer\ConfigEntityNormalizer[[api-linebreak]] @group serialization | ||||
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\jsonapi\Functional | core/ |
Resource test base class for config entities. | 32 | 3 | ||
ConfigEntityResourceTestBase | abstract class | Drupal\Tests\rest\Functional\EntityResource | core/ |
Resource test base class for config entities. | 37 | 38 | ||
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/ |
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityStorage[[api-linebreak]] @group Config | ||||
ConfigEntityTest | class | Drupal\Tests\config\FunctionalJavascript | core/ |
Tests the Config operations through the UI. | ||||
ConfigEntityTest | class | Drupal\Tests\config\Functional | core/ |
Tests configuration entities. | ||||
ConfigEntityTest | class | Drupal\Tests\migrate\Kernel\Plugin\source | core/ |
Tests the config source plugin. | ||||
ConfigEntityType | class | Drupal\Core\Entity\Attribute | core/ |
Defines a configuration entity type attribute object. | 35 | |||
ConfigEntityType | class | Drupal\Core\Config\Entity | core/ |
Provides an implementation of a configuration entity type and its metadata. | 5 | |||
ConfigEntityType | class | Drupal\Core\Entity\Annotation | core/ |
Defines a config entity type annotation object. | ||||
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/ |
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType[[api-linebreak]] @group Config | ||||
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. | 8 | |||
ConfigEntityUpdaterTest | class | Drupal\KernelTests\Core\Config\Entity | core/ |
Tests \Drupal\Core\Config\Entity\ConfigEntityUpdater. |
Pagination
- Previous page
- Page 32
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.