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 |
---|---|---|---|---|---|---|---|
Composer | class |
Drupal\ |
composer/ |
Provides static functions for composer script events. | 7 | ||
DrupalCoreRecommendedBuilder | class |
Drupal\ |
composer/ |
Builder to produce metapackage for drupal/core-recommended. | 3 | ||
DrupalDevDependenciesBuilder | class |
Drupal\ |
composer/ |
Builder to produce metapackage for drupal/core-dev. | 3 | ||
DrupalPackageBuilder | abstract class |
Drupal\ |
composer/ |
Base class that includes helpful utility routine for Drupal builder classes. | 3 | ||
DrupalPinnedDevDependenciesBuilder | class |
Drupal\ |
composer/ |
Builder to produce metapackage for drupal/core-dev-pinned. | 3 | ||
BuilderInterface | interface |
Drupal\ |
composer/ |
Produce the output for a metapackage. | 1 | 1 | |
ComponentGenerator | class |
Drupal\ |
composer/ |
Reconciles Drupal component dependencies with core. | 1 | ||
PackageGenerator | class |
Drupal\ |
composer/ |
Generates metapackages. | 2 | ||
DrupalCoreComposer | class |
Drupal\ |
composer/ |
Utilities for accessing composer.json data from drupal/drupal and drupal/core. | 6 | ||
Message | class |
Drupal\ |
composer/ |
Determine configuration. | 1 | ||
MessagePlugin | class |
Drupal\ |
composer/ |
A Composer plugin to display a message after creating a project. | |||
AllowedPackages | class |
Drupal\ |
composer/ |
Determine recursively which packages have been allowed to scaffold files. | |||
CommandProvider | class |
Drupal\ |
composer/ |
List of all commands provided by this package. | 1 | ||
ComposerScaffoldCommand | class |
Drupal\ |
composer/ |
The "drupal:scaffold" command class. | |||
GenerateAutoloadReferenceFile | final class |
Drupal\ |
composer/ |
Generates an 'autoload.php' that includes the autoloader created by Composer. | |||
Git | class |
Drupal\ |
composer/ |
Provide some Git utility operations. | |||
Handler | class |
Drupal\ |
composer/ |
Core class of the plugin. | 1 | ||
Interpolator | class |
Drupal\ |
composer/ |
Injects config values from an associative array into a string. | 2 | ||
ManageGitIgnore | class |
Drupal\ |
composer/ |
Manage the .gitignore file. | |||
ManageOptions | class |
Drupal\ |
composer/ |
Per-project options from the 'extras' section of the composer.json file. | |||
AbstractOperation | abstract class |
Drupal\ |
composer/ |
Provides default behaviors for operations. | 3 | ||
AppendOp | class |
Drupal\ |
composer/ |
Scaffold operation to add to the beginning and/or end of a scaffold file. | 3 | ||
OperationData | class |
Drupal\ |
composer/ |
Holds parameter data for operation objects during operation creation only. | 1 | ||
OperationFactory | class |
Drupal\ |
composer/ |
Create Scaffold operation objects based on provided metadata. | 1 | ||
OperationInterface | interface |
Drupal\ |
composer/ |
Interface for scaffold operation objects. | 1 | 1 | |
ReplaceOp | class |
Drupal\ |
composer/ |
Scaffold operation to copy or symlink from source to destination. | 2 | ||
ScaffoldFileCollection | class |
Drupal\ |
composer/ |
Collection of scaffold files. | 2 | ||
ScaffoldResult | class |
Drupal\ |
composer/ |
Record the result of a scaffold operation. | 1 | ||
SkipOp | class |
Drupal\ |
composer/ |
Scaffold operation to skip a scaffold file (do nothing). | 2 | ||
Plugin | class |
Drupal\ |
composer/ |
Composer plugin for handling drupal scaffold. | |||
PostPackageEventListenerInterface | interface |
Drupal\ |
composer/ |
Interface for post package event listeners. | 1 | ||
ScaffoldFileInfo | class |
Drupal\ |
composer/ |
Data object that keeps track of one scaffold file. | 1 | ||
ScaffoldFilePath | class |
Drupal\ |
composer/ |
Manage the path to a file to scaffold. | 9 | ||
ScaffoldOptions | class |
Drupal\ |
composer/ |
Per-project options from the 'extras' section of the composer.json file. | 8 | ||
Config | class |
Drupal\ |
composer/ |
Determine configuration. | 3 | ||
FileSecurity | class |
Drupal\ |
composer/ |
Provides file security functions. | |||
VendorHardeningPlugin | class |
Drupal\ |
composer/ |
A Composer plugin to clean out your project's vendor directory. | 1 | ||
SemanticVersion | class |
Drupal\ |
composer/ |
Utility methods for manipulating semantic versions. | 1 | ||
Drupal | class |
core/ |
Static Service Container wrapper. | ||||
AnnotationBase | abstract class |
Drupal\ |
core/ |
Provides a base class for classed annotations. | 5 | 4 | |
AnnotationInterface | interface |
Drupal\ |
core/ |
Defines a common interface for classed annotations. | 3 | 4 | |
DocParser | final class |
Drupal\ |
core/ |
A parser for docblock annotations. | 3 | ||
SimpleAnnotationReader | final class |
Drupal\ |
core/ |
Simple Annotation Reader. | 2 | ||
StaticReflectionClass | class |
Drupal\ |
core/ |
||||
Plugin | class |
Drupal\ |
core/ |
Defines a Plugin annotation object. | 42 | 41 | |
AnnotatedClassDiscovery | class |
Drupal\ |
core/ |
Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. | 1 | 4 | |
AnnotationBridgeDecorator | class |
Drupal\ |
core/ |
Ensures that all definitions are run through the annotation process. | 3 | ||
PluginID | class |
Drupal\ |
core/ |
Defines a Plugin annotation object that just contains an ID. | 2 | 4 | |
MockFileFinder | class |
Drupal\ |
core/ |
Defines a mock file finder that only returns a single filename. | 5 | ||
Handle Deprecated | class |
Drupal\ |
core/ |
Handler for runtime assertion failures. |