Primary tabs
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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
ComposerBuildTestBase | abstract class |
Drupal\ |
core/ |
Base class for Composer build tests. | 2 | 2 | |
ComposerValidateTest | class |
Drupal\ |
core/ |
@group Composer | |||
ComponentsIsolatedBuildTest | class |
Drupal\ |
core/ |
Try to install dependencies per component, using Composer. | |||
ComponentsTaggedReleaseTest | class |
Drupal\ |
core/ |
Demonstrate that the Component generator responds to release tagging. | |||
ExternalCommandRequirementsTrait Deprecated | trait |
Drupal\ |
core/ |
Allows test classes to require external command line applications. | 1 | ||
BuildTestTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\BuildTests\Framework\BuildTestBase @group Build | |||
ExternalCommandRequirementTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\BuildTests\Framework\ExternalCommandRequirementsTrait @group Build @group legacy | |||
UsesCommandRequirements | class |
Drupal\ |
core/ |
||||
ClassRequiresAvailable | class |
Drupal\ |
core/ |
@requires externalCommand available_command | |||
ClassRequiresUnavailable | class |
Drupal\ |
core/ |
@requires externalCommand unavailable_command | |||
MethodRequires | class |
Drupal\ |
core/ |
||||
HtRouterTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\BuildTests\Framework\BuildTestBase @group Build @requires extension pdo_sqlite | |||
QuickStartTestBase | abstract class |
Drupal\ |
core/ |
Helper methods for using the quickstart feature of Drupal. | 1 | 1 | |
InstallTest | class |
Drupal\ |
core/ |
@group Build @group TestSiteApplication | |||
CacheTestController | class |
Drupal\ |
core/ |
Controller routines for cache_test routes. | |||
CKEditor5StylesheetsMessage | final class |
Drupal\ |
core/ |
Messaging for themes using the ckeditor_stylesheets setting. | 2 | ||
HTMLRestrictions | final class |
Drupal\ |
core/ |
Represents a set of HTML restrictions. | 21 | ||
CKEditor4To5Upgrade | class |
Drupal\ |
core/ |
Defines a CKEditor4To5Upgrade annotation object. | 1 | ||
CKEditor5AspectsOfCKEditor5Plugin | class |
Drupal\ |
core/ |
Defines the "CKEditor 5 aspects of a CKEditor5Plugin" annotation object. | |||
CKEditor5Plugin | class |
Drupal\ |
core/ |
Defines a CKEditor5Plugin annotation object. | 2 | ||
DrupalAspectsOfCKEditor5Plugin | class |
Drupal\ |
core/ |
Defines the "Drupal aspects of a CKEditor5Plugin" annotation object. | |||
CKEditor5MediaController | class |
Drupal\ |
core/ |
Provides an API for checking if a media entity has image field. | |||
CKEditor5CacheTag | class |
Drupal\ |
core/ |
A subscriber invalidating cache tags when the default theme changes. | 2 | ||
CKEditor4To5UpgradePluginInterface | interface |
Drupal\ |
core/ |
Defines an interface for CKEditor 4 to 5 upgrade plugins. | 2 | 2 | |
CKEditor4To5UpgradePluginManager | class |
Drupal\ |
core/ |
Provides a CKEditor 4 to 5 upgrade plugin manager. | 2 | ||
CKEditor5PluginConfigurableInterface | interface |
Drupal\ |
core/ |
Defines an interface for configurable CKEditor 5 plugins. | 10 | 9 | |
CKEditor5PluginConfigurableTrait | trait |
Drupal\ |
core/ |
Provides a trait for configurable CKEditor 5 plugins. | 10 | ||
CKEditor5PluginDefault | class |
Drupal\ |
core/ |
Defines the default CKEditor 5 plugin implementation. | 11 | 12 | |
CKEditor5PluginDefinition | final class |
Drupal\ |
core/ |
Provides an implementation of a CKEditor 5 plugin definition. | 13 | ||
CKEditor5PluginElementsSubsetInterface | interface |
Drupal\ |
core/ |
Defines an interface for plugins that can support an elements subset. | 7 | 8 | |
CKEditor5PluginInterface | interface |
Drupal\ |
core/ |
Defines an interface for CKEditor 5 plugins. | 2 | ||
CKEditor5PluginManager | class |
Drupal\ |
core/ |
Provides a CKEditor 5 plugin manager. | 2 | ||
CKEditor5PluginManagerInterface | interface |
Drupal\ |
core/ |
Provides the interface for a plugin manager of CKEditor 5 plugins. | 1 | 2 | |
Contrib | class |
Drupal\ |
core/ |
Provides the CKEditor 4 to 5 upgrade path for contrib plugins now in core. | |||
Core | class |
Drupal\ |
core/ |
Provides the CKEditor 4 to 5 upgrade for Drupal core's CKEditor plugins. | |||
Alignment | class |
Drupal\ |
core/ |
CKEditor 5 Alignment plugin. | 1 | 1 | |
DynamicPluginConfigWithCsrfTokenUrlTrait | trait |
Drupal\ |
core/ |
Provides a trait for CKEditor 5 with dynamically generated CSRF token URLs. | |||
GlobalAttribute | class |
Drupal\ |
core/ |
CKEditor 5 Global Attribute for filter_html. | 1 | ||
Heading | class |
Drupal\ |
core/ |
CKEditor 5 Heading plugin. | 3 | 1 | |
Image | class |
Drupal\ |
core/ |
CKEditor 5 Image plugin. | 1 | ||
ImageResize | class |
Drupal\ |
core/ |
CKEditor 5 ImageResize plugin. | 1 | ||
ListPlugin | class |
Drupal\ |
core/ |
CKEditor 5 List plugin. | 1 | 1 | |
Media | class |
Drupal\ |
core/ |
CKEditor 5 Media plugin. | 1 | ||
SourceEditing | class |
Drupal\ |
core/ |
CKEditor 5 Source Editing plugin configuration. | 1 | 1 | |
Style | class |
Drupal\ |
core/ |
CKEditor 5 Style plugin configuration. | 3 | 1 | |
CodeBlock | class |
Drupal\ |
core/ |
CKEditor 5 Code Block plugin configuration. | 1 | ||
CKEditor5ElementConstraintValidator | class |
Drupal\ |
core/ |
CKEditor 5 element validator. | |||
EnabledConfigurablePluginsConstraintValidator | class |
Drupal\ |
core/ |
Enabled configurable plugin settings validator. | |||
FundamentalCompatibilityConstraintValidator | class |
Drupal\ |
core/ |
Validates fundamental compatibility of CKEditor 5 with the given text format. | |||
PluginManagerDependentValidatorTrait | trait |
Drupal\ |
core/ |
Common functionality for many CKEditor 5 validation constraints. |