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 |
---|---|---|---|---|---|---|---|
Image | class |
Drupal\ |
core/ |
Provides helpers to operate on images. | 1 | ||
NestedArray | class |
Drupal\ |
core/ |
Provides helpers to perform operations on nested arrays and array keys of variable depth. | 86 | ||
Number | class |
Drupal\ |
core/ |
Provides helper methods for manipulating numbers. | 3 | ||
OpCodeCache | class |
Drupal\ |
core/ |
Provides helpers to handle PHP opcode caches. | 1 | ||
Rectangle | class |
Drupal\ |
core/ |
Rectangle rotation algebra class. | 1 | ||
Reflection | final class |
Drupal\ |
core/ |
Provides helper methods for reflection. | 2 | ||
SortArray | class |
Drupal\ |
core/ |
Provides generic array sorting helper methods. | 5 | ||
Tags | class |
Drupal\ |
core/ |
Defines a class that can explode and implode tags. | 7 | ||
Timer | class |
Drupal\ |
core/ |
Provides helpers to use timers throughout a request. | 3 | ||
ToStringTrait | trait |
Drupal\ |
core/ |
Wraps __toString in a trait to avoid some fatal errors. | 2 | ||
Unicode | class |
Drupal\ |
core/ |
Provides Unicode-related conversions and operations. | 33 | ||
UserAgent | class |
Drupal\ |
core/ |
Provides user agent related utility functions. | 2 | ||
Variable | class |
Drupal\ |
core/ |
Provides helpers for dealing with variables. | 8 | ||
Xss | class |
Drupal\ |
core/ |
Provides helper to filter for cross-site scripting. | 1 | 30 | |
DeprecationHelper | final class |
Drupal\ |
core/ |
Provides a helper method for handling deprecated code paths in projects. | |||
HtmlSerializerRules | class |
Drupal\ |
core/ |
Drupal-specific HTML5 serializer rules. | |||
UrlHelper | class |
Drupal\ |
core/ |
Helper class URL based methods. | 59 | ||
Com | class |
Drupal\ |
core/ |
Generates a UUID using the Windows internal GUID extension. | 1 | ||
Pecl | class |
Drupal\ |
core/ |
Generates a UUID using the PECL extension. | 1 | ||
Php | class |
Drupal\ |
core/ |
Generates a UUID v4 (RFC 4122 section 4.4) using PHP code. | 4 | 2 | |
Uuid | class |
Drupal\ |
core/ |
UUID Helper methods. | 6 | ||
UuidInterface | interface |
Drupal\ |
core/ |
Interface for generating UUIDs. | 3 | 11 | |
Constraint | class |
Drupal\ |
core/ |
A value object representing a Drupal version constraint. | 3 | ||
Composer | class |
Drupal\ |
composer/ |
Provides static functions for composer script events. | 7 | ||
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 | ||
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. | |||
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 | ||
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 |