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 |
---|---|---|---|---|---|---|---|---|
Any | class | Google\Protobuf | vendor/ |
`Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated… | ||||
Any | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The "any" data type. | ||||
Any | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
AnyBase | class | Google\Protobuf\Internal | vendor/ |
Base class for Google\Protobuf\Any, this contains hand-written convenience methods like pack() and unpack(). | 1 | |||
AnyInvokedCount | final class | PHPUnit\Framework\MockObject\Rule | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 4 | |||
AnyParameters | final class | PHPUnit\Framework\MockObject\Rule | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
AnyValue | class | Opentelemetry\Proto\Common\V1 | vendor/ |
AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives. | 1 | |||
AnyValuesToken | class | Prophecy\Argument\Token | vendor/ |
Any values token. | 2 | |||
AnyValueToken | class | Prophecy\Argument\Token | vendor/ |
Any single value token. | ||||
AnyVersionConstraint | class | PharIo\Version | vendor/ |
1 | ||||
ApcuBackend | class | Drupal\Core\Cache | core/ |
Stores cache items in the Alternative PHP Cache User Cache (APCu). | ||||
ApcuBackendFactory | class | Drupal\Core\Cache | core/ |
|||||
ApcuFileCacheBackend | class | Drupal\Component\FileCache | core/ |
APCu backend for the file cache. | ||||
Api | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
Api | class | Google\Protobuf | vendor/ |
Api is a light-weight descriptor for an API Interface. Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which… | ||||
AppCacheStatus | by W3C WebDriver |
final class | WebDriver | vendor/ |
WebDriver\AppCacheStatus class | |||
AppendCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for calling the jQuery append() method. | ||||
AppendOp | class | Drupal\Composer\Plugin\Scaffold\Operations | composer/ |
Scaffold operation to add to the beginning and/or end of a scaffold file. | ||||
AppendStream | final class | GuzzleHttp\Psr7 | vendor/ |
Reads from multiple streams, one after the other. | ||||
Application | final class | PHPUnit\TextUI | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Application | class | Symfony\Component\Console | vendor/ |
An Application is the container for a collection of commands. | 4 | 18 | ||
Application | class | PharIo\Manifest | vendor/ |
|||||
Application | class | Composer\Console | vendor/ |
The console application that handles the commands | 1 | |||
ApplicationCache | class | WebDriver | vendor/ |
WebDriver\ApplicationCache class | ||||
ApplicationDescription | class | Symfony\Component\Console\Descriptor | vendor/ |
@author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> | 2 | |||
ApplicationName | class | PharIo\Manifest | vendor/ |
1 | ||||
ApplicationTester | class | Symfony\Component\Console\Tester | vendor/ |
Eases the testing of console applications. | ||||
ApplyFailedException | final class | Drupal\package_manager\Exception | core/ |
Exception thrown if a stage encounters an error applying an update. | 1 | |||
ApplyTokenParser | final class | Twig\TokenParser | vendor/ |
Applies filters on a section of a template. | 1 | |||
ApproximateValueToken | class | Prophecy\Argument\Token | vendor/ |
Approximate value token | ||||
ArbitraryParenthesesSpacingSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace | vendor/ |
|||||
ArchivableFilesFilter | class | Composer\Package\Archiver | vendor/ |
@phpstan-extends FilterIterator<string, SplFileInfo, Iterator<string, SplFileInfo>> | ||||
ArchivableFilesFinder | class | Composer\Package\Archiver | vendor/ |
A Symfony Finder wrapper which locates files that should go into archives | 1 | |||
ArchiveCommand | class | Composer\Command | vendor/ |
Creates an archive of a package for distribution. | ||||
ArchiveDownloader | abstract class | Composer\Downloader | vendor/ |
Base downloader for archives | 6 | |||
ArchiveManager | class | Composer\Package\Archiver | vendor/ |
@author Matthieu Moquet <matthieu@moquet.net> @author Till Klampaeckel <till@php.net> | 1 | |||
Archiver | class | Drupal\Core\Archiver\Annotation | core/ |
Defines an archiver annotation object. | ||||
Archiver | class | Drupal\Core\Archiver\Attribute | core/ |
Defines an archiver attribute object. | 3 | |||
ArchiverException | class | Drupal\Core\Archiver | core/ |
Defines an exception class for Drupal\Core\Archiver\ArchiverInterface. | ||||
ArchiverInterface | interface | Drupal\Core\Archiver | core/ |
Defines the common interface for all Archiver classes. | 2 | |||
ArchiverInterface | interface | Composer\Package\Archiver | vendor/ |
@author Till Klampaeckel <till@php.net> @author Matthieu Moquet <matthieu@moquet.net> @author Nils Adermann <naderman@naderman.de> | 2 | |||
ArchiverManager | class | Drupal\Core\Archiver | core/ |
Provides an Archiver plugin manager. | ||||
ArchiveTar | class | Drupal\Core\Archiver | core/ |
Extends Pear's Archive_Tar to use exceptions. | 2 | |||
Archive_Tar | class | vendor/ |
Creates a (compressed) Tar archive | |||||
AreaPluginBase | abstract class | Drupal\views\Plugin\views\area | core/ |
Base class for area handler plugins. | 10 | 3 | ||
Arg | class | PhpParser\Node | vendor/ |
9 | ||||
ArgsStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents a list of function arguments. | ||||
Argument | class | Prophecy | vendor/ |
Argument tokens shortcuts. | 1 | |||
ArgumentDefaultPluginBase | abstract class | Drupal\views\Plugin\views\argument_default | core/ |
The fixed argument default handler; also used as the base. | 7 | 4 | ||
ArgumentInterface | interface | Symfony\Component\DependencyInjection\Argument | vendor/ |
Represents a complex argument containing nested values. | 4 | 11 |