Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
CheckPlatformReqsCommand | class | Composer\Command | vendor/ |
|||||
Checkpoint | final class | Drupal\Core\Config\Checkpoint | core/ |
A value object to store information about a checkpoint. | 1 | |||
CheckpointExistsException | final class | Drupal\Core\Config\Checkpoint | core/ |
Thrown when trying to add a checkpoint with an ID that already exists. | ||||
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. | ||||
CheckpointStorageInterface | interface | Drupal\Core\Config\Checkpoint | core/ |
Provides an interface for checkpoint storages. | 1 | |||
CheckProvider | class | Drupal\Core\Access | core/ |
Loads access checkers from the container. | ||||
CheckProviderInterface | interface | Drupal\Core\Access | core/ |
Provides the available access checkers by service IDs. | 1 | 1 | ||
CheckReferenceValidityPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Checks the validity of references. | ||||
CheckSecurityCallNode | class | Twig\Node | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
CheckSecurityNode | class | Twig\Node | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
Checkstyle | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
CheckToStringNode | class | Twig\Node | vendor/ |
Checks if casting an expression to __toString() is allowed by the sandbox. | 1 | 4 | ||
CheckTypeDeclarationsPass | final class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Checks whether injected parameters are compatible with type declarations. | ||||
ChefInstaller | class | Composer\Installers | vendor/ |
|||||
ChildDefinition | class | Symfony\Component\DependencyInjection | vendor/ |
This definition extends another definition. | 16 | |||
ChmodInterface | interface | Drupal\Core\FileTransfer | core/ |
Defines an interface to chmod files. | 3 | |||
Choice | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is one of a given set of valid choices. | 1 | 7 | ||
ChoiceFormField | class | Symfony\Component\DomCrawler\Field | vendor/ |
ChoiceFormField represents a choice form field. | 2 | |||
ChoiceQuestion | class | Symfony\Component\Console\Question | vendor/ |
Represents a choice question. | 4 | |||
ChoiceValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
ChoiceValidator validates that the value is one of the expected values. | 1 | 1 | ||
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. | ||||
Chunk | final class | SebastianBergmann\Diff | vendor/ |
@template-implements IteratorAggregate<int, Line> | ||||
Cidr | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid CIDR notation. | ||||
CidrValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value is a CIDR notation. | ||||
CircularReferenceException | class | Symfony\Component\Serializer\Exception | vendor/ |
CircularReferenceException. | 2 | |||
CiviCrmInstaller | class | Composer\Installers | vendor/ |
|||||
CKEditor5 | class | Drupal\ckeditor5\Plugin\Editor | core/ |
Defines a CKEditor 5-based text editor for Drupal. | 1 | |||
CKEditor5AspectsOfCKEditor5Plugin | class | Drupal\ckeditor5\Attribute | core/ |
|||||
CKEditor5AspectsOfCKEditor5Plugin | class | Drupal\ckeditor5\Annotation | core/ |
Defines the "CKEditor 5 aspects of a CKEditor5Plugin" annotation object. | ||||
CKEditor5CacheTag | class | Drupal\ckeditor5\EventSubscriber | core/ |
A subscriber invalidating cache tags when the default theme changes. | 2 | |||
CKEditor5ElementConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 element. | ||||
CKEditor5ElementConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
CKEditor 5 element validator. | ||||
Ckeditor5Hooks | class | Drupal\ckeditor5\Hook | core/ |
Hook implementations for ckeditor5. | ||||
CKEditor5ImageController | class | Drupal\ckeditor5\Controller | core/ |
Returns response for CKEditor 5 Simple image upload adapter. | ||||
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. | ||||
CKEditor5Plugin | class | Drupal\ckeditor5\Attribute | core/ |
The CKEditor5Plugin attribute. | 1 | |||
CKEditor5Plugin | class | Drupal\ckeditor5\Annotation | core/ |
Defines a CKEditor5Plugin annotation object. | ||||
CKEditor5PluginConfigurableInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for configurable CKEditor 5 plugins. | 11 | 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 | 14 | ||
CKEditor5PluginDefinition | final class | Drupal\ckeditor5\Plugin | core/ |
Provides an implementation of a CKEditor 5 plugin definition. | 13 | |||
CKEditor5PluginElementsSubsetInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for plugins that can support an elements subset. | 6 | 7 | ||
CKEditor5PluginInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Defines an interface for CKEditor 5 plugins. | 2 | |||
CKEditor5PluginManager | class | Drupal\ckeditor5\Plugin | core/ |
Provides a CKEditor 5 plugin manager. | 2 | |||
CKEditor5PluginManagerInterface | interface | Drupal\ckeditor5\Plugin | core/ |
Provides the interface for a plugin manager of CKEditor 5 plugins. | 1 | 6 | ||
ClanCatsFrameworkInstaller | class | Composer\Installers | vendor/ |