Classes, traits, and interfaces - 9.5.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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ChainEntityResolverTest | class | Drupal\Tests\serialization\Unit\EntityResolver | core/ |
@coversDefaultClass \Drupal\serialization\EntityResolver\ChainEntityResolver[[api-linebreak]] @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[[api-linebreak]] @group PageCache | ||||
| 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/ |
@coversDefaultClass \Drupal\Core\PageCache\ChainResponsePolicy[[api-linebreak]] @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. | ||||
| 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. | ||||
| 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. | ||||
| 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 | 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" ) | ||||
| 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. | ||||
| CKEditor | class | Drupal\ckeditor\Plugin\Editor | core/ |
Defines a CKEditor-based text editor for Drupal. | ||||
| CKEditor4To5Upgrade | class | Drupal\ckeditor5\Annotation | core/ |
Defines a CKEditor4To5Upgrade annotation object. | 1 | |||
| CKEditor4to5UpgradeCompletenessTest | class | Drupal\Tests\ckeditor5\Kernel | core/ |
@covers \Drupal\ckeditor5\Plugin\CKEditor4To5Upgrade\Core[[api-linebreak]] @group ckeditor5 @internal | ||||
| CKEditor4To5UpgradePluginInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for CKEditor 4 to 5 upgrade plugins. | 2 | 2 | ||
| CKEditor4To5UpgradePluginManager | class | Drupal\ckeditor5\Plugin | core/ |
Provides a CKEditor 4 to 5 upgrade plugin manager. | 2 | |||
| CKEditor5 | class | Drupal\ckeditor5\Plugin\Editor | core/ |
Defines a CKEditor 5-based text editor for Drupal. | 22 | |||
| CKEditor5AllowedTagsTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5. | ||||
| 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 | |||
| CKEditor5CKEditor4Compatibility | class | Drupal\Tests\ckeditor\FunctionalJavascript | core/ |
Ensures that CKEditor 5 can be used on the same page with CKEditor 4. | ||||
| 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. | ||||
| 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. | ||||
| CKEditor5ImageController | class | Drupal\ckeditor5\Controller | core/ |
Returns response for CKEditor 5 Simple image upload adapter. | ||||
| CKEditor5IntegrationTest | class | Drupal\Tests\quickedit\FunctionalJavascript | core/ |
Tests that Quick Edit can load CKEditor 5. | ||||
| CKEditor5MediaAndFilterSettingsInSyncConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Ensure CKEditor 5 media plugin's and media filter's settings are in sync. | ||||
| CKEditor5MediaAndFilterSettingsInSyncConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 Media plugin in sync with the filter settings validator. | ||||
| CKEditor5MediaController | class | Drupal\ckeditor5\Controller | core/ |
Provides an API for checking if a media entity has image field. | ||||
| CKEditor5OffCanvasTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests for CKEditor 5 to ensure correct styling in off-canvas. | ||||
| CKEditor5OffCanvasTestController | class | Drupal\ckeditor5_test\Controller | core/ |
Provides controller for testing CKEditor in off-canvas dialogs. | ||||
| CKEditor5Plugin | class | Drupal\ckeditor5\Annotation | core/ |
Defines a CKEditor5Plugin annotation object. | 2 | |||
| CKEditor5PluginConfigurableInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for configurable CKEditor 5 plugins. | 10 | 10 | ||
| CKEditor5PluginConfigurableTrait | trait | Drupal\ckeditor5\Plugin | core/ |
Provides a trait for configurable CKEditor 5 plugins. | 10 | |||
| CKEditor5PluginDefault | class | Drupal\ckeditor5\Plugin | core/ |
Defines the default CKEditor 5 plugin implementation. | 12 | 13 | ||
| CKEditor5PluginDefinition | final class | Drupal\ckeditor5\Plugin | core/ |
Provides an implementation of a CKEditor 5 plugin definition. | 15 |
Pagination
- Previous page
- Page 19
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.