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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
CategorizingPluginManagerInterface | interface | Drupal\Component\Plugin | core/ |
Defines an interface for plugin managers that categorize plugin definitions. | 6 | 6 | ||
CategorizingPluginManagerTrait | trait | Drupal\Core\Plugin | core/ |
Provides a trait for the CategorizingPluginManagerInterface. | 5 | |||
CategorizingPluginManagerTraitTest | class | Drupal\Tests\Core\Plugin | core/ |
@coversDefaultClass \Drupal\Core\Plugin\CategorizingPluginManagerTrait @group Plugin @runTestsInSeparateProcesses | ||||
CategoryAutocompleteController | class | Drupal\block\Controller | core/ |
Returns autocomplete responses for block categories. | 1 | |||
CategoryAutocompleteTest | class | Drupal\Tests\block\Unit | core/ |
@coversDefaultClass \Drupal\block\Controller\CategoryAutocompleteController @group block | ||||
ChainBreadcrumbBuilderInterface | interface | Drupal\Core\Breadcrumb | core/ |
Defines an interface a chained service that builds the breadcrumb. | 1 | |||
ChainedFastBackend | class | Drupal\Core\Cache | core/ |
Defines a backend with a fast and a consistent backend chain. | 3 | |||
ChainedFastBackendFactory | class | Drupal\Core\Cache | core/ |
Defines the chained fast cache backend factory. | 1 | |||
ChainedFastBackendFactoryTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\ChainedFastBackendFactory @group Cache | ||||
ChainedFastBackendTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\ChainedFastBackend @group Cache | ||||
ChainedFastBackendTest | class | Drupal\KernelTests\Core\Cache | core/ |
Unit test of the fast chained backend using the generic cache unit test base. | ||||
ChainedPlaceholderStrategy | class | Drupal\Core\Render\Placeholder | core/ |
Renders placeholders using a chain of placeholder strategies. | 1 | |||
ChainedPlaceholderStrategyTest | class | Drupal\Tests\Core\Render\Placeholder | core/ |
@coversDefaultClass \Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy @group Render | ||||
ChainEntityResolver | class | Drupal\serialization\EntityResolver | core/ |
Resolver delegating the entity resolution to a chain of resolvers. | 1 | 2 | ||
ChainEntityResolverInterface | interface | Drupal\serialization\EntityResolver | core/ |
An interface for delegating an entity resolution to a chain of resolvers. | 1 | |||
ChainEntityResolverTest | class | Drupal\Tests\serialization\Unit\EntityResolver | core/ |
@coversDefaultClass \Drupal\serialization\EntityResolver\ChainEntityResolver @group serialization | ||||
ChainRequestPolicy | class | Drupal\Core\PageCache | core/ |
Implements a compound request policy. | 2 | 2 | ||
ChainRequestPolicyInterface | interface | Drupal\Core\PageCache | core/ |
Defines the interface for compound request policies. | 1 | |||
ChainRequestPolicyTest | class | Drupal\Tests\Core\PageCache | core/ |
@coversDefaultClass \Drupal\Core\PageCache\ChainRequestPolicy @group PageCache | ||||
ChainResponsePolicy | class | Drupal\Core\PageCache | core/ |
Implements a compound response policy. | 1 | 2 | ||
ChainResponsePolicy | class | Drupal\Core\ProxyClass\PageCache | core/ |
Provides a proxy class for \Drupal\Core\PageCache\ChainResponsePolicy. | ||||
ChainResponsePolicyInterface | interface | Drupal\Core\PageCache | core/ |
Defines the interface for compound request policies. | 2 | |||
ChainResponsePolicyTest | class | Drupal\Tests\Core\PageCache | core/ |
@coversDefaultClass \Drupal\Core\PageCache\ChainResponsePolicy @group PageCache | ||||
ChangedCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for marking HTML elements as changed. | 2 | |||
ChangedFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for changed fields. | 2 | |||
ChangedItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'changed' entity field type. | 1 | 2 | ||
ChangedTestItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'changed_test' entity field type. | ||||
ChangeLogger | final class | Drupal\package_manager\EventSubscriber | core/ |
Event subscriber to log changes that happen during the stage life cycle. | ||||
ChangeLoggerTest | class | Drupal\Tests\package_manager\Kernel | core/ |
@covers \Drupal\package_manager\EventSubscriber\ChangeLogger @group package_manager | ||||
ChangeUserRoleBase | abstract class | Drupal\user\Plugin\Action | core/ |
Provides a base class for operations to change a user's role. | 2 | |||
Checkbox | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a single checkbox. | ||||
Checkboxes | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a set of checkboxes. | 3 | |||
CheckboxTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the form API checkbox element. | ||||
Checkpoint | final class | Drupal\Core\Config\Checkpoint | core/ |
A value object to store information about a checkpoint. | 5 | |||
CheckpointExistsException | final class | Drupal\Core\Config\Checkpoint | core/ |
Thrown when trying to add a checkpoint with an ID that already exists. | 1 | |||
CheckpointListInterface | interface | Drupal\Core\Config\Checkpoint | core/ |
Maintains a list of checkpoints. | 1 | |||
CheckpointStorage | final class | Drupal\Core\Config\Checkpoint | core/ |
Provides a config storage that can make checkpoints. | 1 | |||
CheckpointStorageInterface | interface | Drupal\Core\Config\Checkpoint | core/ |
Provides an interface for checkpoint storages. | 1 | 1 | ||
CheckpointStorageTest | class | Drupal\KernelTests\Core\Config\Storage\Checkpoint | core/ |
Tests CheckpointStorage operations. | ||||
CheckpointStorageTest | class | Drupal\Tests\Core\Config\Checkpoint | core/ |
@coversDefaultClass \Drupal\Core\Config\Checkpoint\CheckpointStorage @group Config | ||||
CheckProvider | class | Drupal\Core\Access | core/ |
Loads access checkers from the container. | 1 | |||
CheckProviderInterface | interface | Drupal\Core\Access | core/ |
Provides the available access checkers by service IDs. | 1 | 1 | ||
CheckRequirementsTest | class | Drupal\Tests\migrate\Unit\Plugin\migrate\destination | core/ |
Tests check requirements exception on DestinationBase. | ||||
Cherry | class | Drupal\plugin_test\Plugin\plugin_test\fruit | core/ |
Plugin annotation @Plugin( id = "cherry", label = "Cherry", color = "red" ) | ||||
ChildStage | class | Drupal\Tests\package_manager\Unit | core/ |
|||||
ChmodInterface | interface | Drupal\Core\FileTransfer | core/ |
Defines an interface to chmod files. | 3 | |||
ChooseBlockController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to choose a new block. | ||||
ChooseSectionController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to choose a new section. | ||||
CKEditor4To5Upgrade | class | Drupal\ckeditor5\Annotation | core/ |
Defines a CKEditor4To5Upgrade annotation object. | 1 | |||
CKEditor4To5UpgradePluginInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for CKEditor 4 to 5 upgrade plugins. | 2 | 2 |
Pagination
- Previous page
- Page 21
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.