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 | ||
ComponentGenerator | class |
Drupal\ |
composer/ |
Reconciles Drupal component dependencies with core. | 1 | ||
PackageGenerator | class |
Drupal\ |
composer/ |
Generates metapackages. | 2 | ||
SemanticVersion | class |
Drupal\ |
composer/ |
Utility methods for manipulating semantic versions. | 1 | ||
Drupal | class |
core/ |
Static Service Container wrapper. | ||||
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 | ||
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. | 2 | ||
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. | |||
Plugin | class |
Drupal\ |
composer/ |
Composer plugin for handling drupal scaffold. | |||
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 | ||
BuildTestSuite Deprecated | class |
Drupal\ |
core/ |
Discovers tests for the build test suite. | |||
FunctionalJavascriptTestSuite Deprecated | class |
Drupal\ |
core/ |
Discovers tests for the functional-javascript test suite. | |||
FunctionalTestSuite Deprecated | class |
Drupal\ |
core/ |
Discovers tests for the functional test suite. | |||
KernelTestSuite Deprecated | class |
Drupal\ |
core/ |
Discovers tests for the kernel test suite. | |||
TestSuiteBase Deprecated | abstract class |
Drupal\ |
core/ |
Base class for Drupal test suites. | 6 | 1 | |
UnitTestSuite Deprecated | class |
Drupal\ |
core/ |
Discovers tests for the unit test suite. | |||
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 | ||
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 | ||
CoreServiceProvider | class |
Drupal\ |
core/ |
ServiceProvider class for mandatory core services. | |||
DrupalKernel | class |
Drupal\ |
core/ |
The DrupalKernel class is the core of Drupal itself. | 4 | 31 | |
GeneratedButton | class |
Drupal\ |
core/ |
This class holds a <button> generated from the <button> route. | 2 | ||
GeneratedLink | class |
Drupal\ |
core/ |
Used to return generated links, along with associated cacheability metadata. | 2 | 4 | |
GeneratedNoLink | class |
Drupal\ |
core/ |
This class holds a <span> generated from the <nolink> route. | 2 | ||
GeneratedUrl | class |
Drupal\ |
core/ |
Used to return generated URLs, along with associated bubbleable metadata. | 10 | ||
Link | class |
Drupal\ |
core/ |
Defines an object that holds information about a link. | 80 | ||
Url | class |
Drupal\ |
core/ |
Defines an object that holds information about a URL. | 601 |