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 |
|---|---|---|---|---|---|---|---|---|
| ChainRequestPolicyTest | class | Drupal\Tests\Core\PageCache | core/ |
Tests Drupal\Core\PageCache\ChainRequestPolicy. | ||||
| ChainResponsePolicy | class | Drupal\Core\ProxyClass\PageCache | core/ |
Provides a proxy class for \Drupal\Core\PageCache\ChainResponsePolicy. | ||||
| ChainResponsePolicy | class | Drupal\Core\PageCache | core/ |
Implements a compound response policy. | 1 | 4 | ||
| ChainResponsePolicyInterface | interface | Drupal\Core\PageCache | core/ |
Defines the interface for compound request policies. | 2 | |||
| ChainResponsePolicyTest | class | Drupal\Tests\Core\PageCache | core/ |
Tests Drupal\Core\PageCache\ChainResponsePolicy. | ||||
| 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. | 1 | |||
| ChangeLoggerTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Change Logger. | ||||
| ChangePromotedDefaultTest | class | Drupal\Tests\node\Functional\Update | core/ |
Tests creating base field overrides for the promote field on node types. | ||||
| 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 | 2 | ||
| CheckpointStorageInterface | interface | Drupal\Core\Config\Checkpoint | core/ |
Provides an interface for checkpoint storages. | 1 | 1 | ||
| CheckpointStorageTest | class | Drupal\Tests\Core\Config\Checkpoint | core/ |
Tests Drupal\Core\Config\Checkpoint\CheckpointStorage. | ||||
| CheckpointStorageTest | class | Drupal\KernelTests\Core\Config\Storage\Checkpoint | core/ |
Tests CheckpointStorage operations. | ||||
| CheckProvider | class | Drupal\Core\Access | core/ |
Loads access checkers from the container. | 1 | 2 | ||
| CheckProviderInterface | interface | Drupal\Core\Access | core/ |
Provides the available access checkers by service IDs. | 1 | 2 | ||
| 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" ) | ||||
| ChildSandboxManager | class | Drupal\Tests\package_manager\Unit | core/ |
Test class for testing the child stage. | ||||
| ChildWithDeprecatedMethod | class | Drupal\Tests\TestTools\ErrorHandler | core/ |
Fixture: cross-module child with deprecated method. | ||||
| ChildWithNativeReturnType | class | Drupal\Tests\TestTools\ErrorHandler | core/ |
Fixture: cross-module child with native return type. | ||||
| ChildWithoutOverride | class | Drupal\Tests\TestTools\ErrorHandler | core/ |
Fixture: cross-module child that does not override the method. | ||||
| ChildWithoutReturnType | class | Drupal\Tests\TestTools\ErrorHandler | core/ |
Fixture: cross-module child without native return type. | ||||
| ChildWithReturnAnnotation | class | Drupal\Tests\TestTools\ErrorHandler | core/ |
Fixture: cross-module child with own | ||||
| CHooks | class | Drupal\ccc_hook_order_test\Hook | core/ |
Provides hook implementations for testing the execution order of hooks. | 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. | ||||
| CircularDependencyHooks | class | Drupal\hook_loader_test\Hook | core/ |
Example to test that a hook service can depend on ModuleHandler. | 1 | |||
| CKEditor5 | class | Drupal\ckeditor5\Plugin\Editor | core/ |
Defines a CKEditor 5-based text editor for Drupal. | 26 | |||
| CKEditor5AllowedTagsTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5. | ||||
| CKEditor5AspectsOfCKEditor5Plugin | class | Drupal\ckeditor5\Attribute | core/ |
Defines the CKEditor5 aspect of CKEditor5 plugin. | ||||
| CKEditor5AspectsOfCKEditor5Plugin | class | Drupal\ckeditor5\Annotation | core/ |
Defines the "CKEditor 5 aspects of a CKEditor5Plugin" annotation object. | 1 | |||
| CKEditor5CacheTag | class | Drupal\ckeditor5\EventSubscriber | core/ |
A subscriber invalidating cache tags when the default theme changes. | 2 | |||
| CKEditor5CodeSyntaxTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests code block configured languages are respected. | ||||
| CKEditor5DialogTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5 to ensure correct focus management in dialogs. | ||||
| CKEditor5DialogTestController | class | Drupal\ckeditor5_test\Controller | core/ |
Provides controller for testing CKEditor in off-canvas dialogs. | ||||
| Ckeditor5DrupalElementStyleTestHooks | class | Drupal\ckeditor5_drupalelementstyle_test\Hook | core/ |
Hook implementations for ckeditor5_drupalelementstyle_test. | ||||
| CKEditor5ElementConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 element. | ||||
| CKEditor5ElementConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 element validator. | ||||
| CKEditor5FragmentLinkTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests that the fragment link points to CKEditor 5. | ||||
| CKEditor5HeightTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests ckeditor height respects field rows config. |
Pagination
- Previous page
- Page 22
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.