Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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/google/protobuf/src/Google/Protobuf/Any.php `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/lib/Drupal/Core/TypedData/Plugin/DataType/Any.php The "any" data type.
Any class GPBMetadata\Google\Protobuf vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Any.php
AnyBase class Google\Protobuf\Internal vendor/google/protobuf/src/Google/Protobuf/Internal/AnyBase.php 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/phpunit/phpunit/src/Framework/MockObject/Runtime/Rule/AnyInvokedCount.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 4
AnyParameters final class PHPUnit\Framework\MockObject\Rule vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Rule/AnyParameters.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
AnyValue class Opentelemetry\Proto\Common\V1 vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/AnyValue.php 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/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php Any values token. 2
AnyValueToken class Prophecy\Argument\Token vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php Any single value token.
AnyVersionConstraint class PharIo\Version vendor/phar-io/version/src/constraints/AnyVersionConstraint.php 1
ApcuBackend class Drupal\Core\Cache core/lib/Drupal/Core/Cache/ApcuBackend.php Stores cache items in the Alternative PHP Cache User Cache (APCu).
ApcuBackendFactory class Drupal\Core\Cache core/lib/Drupal/Core/Cache/ApcuBackendFactory.php
ApcuFileCacheBackend class Drupal\Component\FileCache core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php APCu backend for the file cache.
Api class GPBMetadata\Google\Protobuf vendor/google/protobuf/src/GPBMetadata/Google/Protobuf/Api.php
Api class Google\Protobuf vendor/google/protobuf/src/Google/Protobuf/Api.php 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/lullabot/php-webdriver/lib/WebDriver/AppCacheStatus.php WebDriver\AppCacheStatus class
AppendCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AppendCommand.php An AJAX command for calling the jQuery append() method.
AppendOp class Drupal\Composer\Plugin\Scaffold\Operations composer/Plugin/Scaffold/Operations/AppendOp.php Scaffold operation to add to the beginning and/or end of a scaffold file.
AppendStream final class GuzzleHttp\Psr7 vendor/guzzlehttp/psr7/src/AppendStream.php Reads from multiple streams, one after the other.
Application final class PHPUnit\TextUI vendor/phpunit/phpunit/src/TextUI/Application.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Application class Symfony\Component\Console vendor/symfony/console/Application.php An Application is the container for a collection of commands. 4 18
Application class PharIo\Manifest vendor/phar-io/manifest/src/values/Application.php
Application class Composer\Console vendor/composer/composer/src/Composer/Console/Application.php The console application that handles the commands 1
ApplicationCache class WebDriver vendor/lullabot/php-webdriver/lib/WebDriver/ApplicationCache.php WebDriver\ApplicationCache class
ApplicationDescription class Symfony\Component\Console\Descriptor vendor/symfony/console/Descriptor/ApplicationDescription.php @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> 2
ApplicationName class PharIo\Manifest vendor/phar-io/manifest/src/values/ApplicationName.php 1
ApplicationTester class Symfony\Component\Console\Tester vendor/symfony/console/Tester/ApplicationTester.php Eases the testing of console applications.
ApplyFailedException final class Drupal\package_manager\Exception core/modules/package_manager/src/Exception/ApplyFailedException.php Exception thrown if a stage encounters an error applying an update. 1
ApplyTokenParser final class Twig\TokenParser vendor/twig/twig/src/TokenParser/ApplyTokenParser.php Applies filters on a section of a template. 1
ApproximateValueToken class Prophecy\Argument\Token vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ApproximateValueToken.php Approximate value token
ArbitraryParenthesesSpacingSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/WhiteSpace/ArbitraryParenthesesSpacingSniff.php
ArchivableFilesFilter class Composer\Package\Archiver vendor/composer/composer/src/Composer/Package/Archiver/ArchivableFilesFilter.php @phpstan-extends FilterIterator<string, SplFileInfo, Iterator<string, SplFileInfo>>
ArchivableFilesFinder class Composer\Package\Archiver vendor/composer/composer/src/Composer/Package/Archiver/ArchivableFilesFinder.php A Symfony Finder wrapper which locates files that should go into archives 1
ArchiveCommand class Composer\Command vendor/composer/composer/src/Composer/Command/ArchiveCommand.php Creates an archive of a package for distribution.
ArchiveDownloader abstract class Composer\Downloader vendor/composer/composer/src/Composer/Downloader/ArchiveDownloader.php Base downloader for archives 6
ArchiveManager class Composer\Package\Archiver vendor/composer/composer/src/Composer/Package/Archiver/ArchiveManager.php @author Matthieu Moquet <matthieu@moquet.net> @author Till Klampaeckel <till@php.net> 1
Archiver class Drupal\Core\Archiver\Annotation core/lib/Drupal/Core/Archiver/Annotation/Archiver.php Defines an archiver annotation object.
Archiver class Drupal\Core\Archiver\Attribute core/lib/Drupal/Core/Archiver/Attribute/Archiver.php Defines an archiver attribute object. 3
ArchiverException class Drupal\Core\Archiver core/lib/Drupal/Core/Archiver/ArchiverException.php Defines an exception class for Drupal\Core\Archiver\ArchiverInterface.
ArchiverInterface interface Drupal\Core\Archiver core/lib/Drupal/Core/Archiver/ArchiverInterface.php Defines the common interface for all Archiver classes. 2
ArchiverInterface interface Composer\Package\Archiver vendor/composer/composer/src/Composer/Package/Archiver/ArchiverInterface.php @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/lib/Drupal/Core/Archiver/ArchiverManager.php Provides an Archiver plugin manager.
ArchiveTar class Drupal\Core\Archiver core/lib/Drupal/Core/Archiver/ArchiveTar.php Extends Pear's Archive_Tar to use exceptions. 2
Archive_Tar class vendor/pear/archive_tar/Archive/Tar.php Creates a (compressed) Tar archive
AreaPluginBase abstract class Drupal\views\Plugin\views\area core/modules/views/src/Plugin/views/area/AreaPluginBase.php Base class for area handler plugins. 10 3
Arg class PhpParser\Node vendor/nikic/php-parser/lib/PhpParser/Node/Arg.php 9
ArgsStub class Symfony\Component\VarDumper\Caster vendor/symfony/var-dumper/Caster/ArgsStub.php Represents a list of function arguments.
Argument class Prophecy vendor/phpspec/prophecy/src/Prophecy/Argument.php Argument tokens shortcuts. 1
ArgumentDefaultPluginBase abstract class Drupal\views\Plugin\views\argument_default core/modules/views/src/Plugin/views/argument_default/ArgumentDefaultPluginBase.php The fixed argument default handler; also used as the base. 7 4
ArgumentInterface interface Symfony\Component\DependencyInjection\Argument vendor/symfony/dependency-injection/Argument/ArgumentInterface.php Represents a complex argument containing nested values. 4 11

Pagination

  • First page
  • Previous page
  • …
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal