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
CacheClassMetadataFactory class Symfony\Component\Serializer\Mapping\Factory vendor/symfony/serializer/Mapping/Factory/CacheClassMetadataFactory.php Caches metadata using a PSR-6 implementation.
CacheClearerInterface interface Symfony\Component\HttpKernel\CacheClearer vendor/symfony/http-kernel/CacheClearer/CacheClearerInterface.php CacheClearerInterface. 2
CacheCollector abstract class Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheCollector.php Default implementation for CacheCollectorInterface. 8 8
CacheCollectorInterface interface Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheCollectorInterface.php Provides a caching wrapper to be used in place of large structures. 3 2
CacheContextInterface interface Drupal\Core\Cache\Context core/lib/Drupal/Core/Cache/Context/CacheContextInterface.php Provides an interface for defining a cache context service. 15 1
CacheContextsManager class Drupal\Core\Cache\Context core/lib/Drupal/Core/Cache/Context/CacheContextsManager.php Converts cache context tokens into cache keys. 7
CacheContextsPass class Drupal\Core\Cache\Context core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php Adds cache_contexts parameter to the container. 1
CachedDiscoveryClearer class Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/CachedDiscoveryClearer.php Defines a class which is capable of clearing the cache on plugin managers.
CachedDiscoveryClearerInterface interface Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/CachedDiscoveryClearerInterface.php Provides a way to clear static caches of all plugin managers. 1
CachedDiscoveryInterface interface Drupal\Component\Plugin\Discovery core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php Interface for discovery components holding a cache of plugin definitions. 4 6
CachedDoubler class Prophecy\Doubler vendor/phpspec/prophecy/src/Prophecy/Doubler/CachedDoubler.php Cached class doubler. Prevents mirroring/creation of the same structure twice. 1
CachedInstrumentation final class OpenTelemetry\API\Instrumentation vendor/open-telemetry/api/Instrumentation/CachedInstrumentation.php Provides access to cached {@link TracerInterface} and {@link MeterInterface} instances.
CachedStorage class Drupal\Core\Config core/lib/Drupal/Core/Config/CachedStorage.php Defines the cached storage.
CacheException interface Psr\Cache vendor/psr/cache/src/CacheException.php Exception interface for all exceptions thrown by an Implementing Library. 1
CacheFactory class Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheFactory.php
CacheFactoryInterface interface Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheFactoryInterface.php An interface defining cache factory classes. 10 2
CacheInterface interface Twig\Cache vendor/twig/twig/src/Cache/CacheInterface.php Interface implemented by cache classes. 4 2
CacheItemInterface interface Psr\Cache vendor/psr/cache/src/CacheItemInterface.php CacheItemInterface defines an interface for interacting with objects inside a cache.
CacheItemPoolInterface interface Psr\Cache vendor/psr/cache/src/CacheItemPoolInterface.php CacheItemPoolInterface generates CacheItemInterface objects. 6
CachePluginBase abstract class Drupal\views\Plugin\views\cache core/modules/views/src/Plugin/views/cache/CachePluginBase.php The base plugin to handle caching. 3 2
CacheRedirect class Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheRedirect.php Defines a value object to represent a cache redirect.
CacheRouterRebuildSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/CacheRouterRebuildSubscriber.php Clear cache tags when the router is rebuilt.
CacheTagsChecksumInterface interface Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheTagsChecksumInterface.php Provides checksums for cache tag invalidations. 1
CacheTagsChecksumTrait trait Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php A trait for cache tag checksum implementations.
CacheTagsInvalidator class Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheTagsInvalidator.php Passes cache tag events to classes that wish to respond to them.
CacheTagsInvalidatorInterface interface Drupal\Core\Cache core/lib/Drupal/Core/Cache/CacheTagsInvalidatorInterface.php Defines required methods for classes wanting to handle cache tag changes. 7 12
CacheWarmer final class SebastianBergmann\CodeCoverage\StaticAnalysis vendor/phpunit/php-code-coverage/src/StaticAnalysis/CacheWarmer.php 1
CacheWarmer abstract class Symfony\Component\HttpKernel\CacheWarmer vendor/symfony/http-kernel/CacheWarmer/CacheWarmer.php Abstract cache warmer that knows how to write a file to the cache.
CacheWarmerAggregate class Symfony\Component\HttpKernel\CacheWarmer vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php Aggregates several cache warmers into a single one.
CacheWarmerInterface interface Symfony\Component\HttpKernel\CacheWarmer vendor/symfony/http-kernel/CacheWarmer/CacheWarmerInterface.php Interface for classes able to warm up the cache. 3 1
CachingFileAnalyser final class SebastianBergmann\CodeCoverage\StaticAnalysis vendor/phpunit/php-code-coverage/src/StaticAnalysis/CachingFileAnalyser.php @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage 1
CachingParser final class PHPUnit\Metadata\Parser vendor/phpunit/phpunit/src/Metadata/Parser/CachingParser.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
CachingStream final class GuzzleHttp\Psr7 vendor/guzzlehttp/psr7/src/CachingStream.php Stream decorator that can cache previously read bytes from a sequentially read stream.
CakePHPInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
CalculatedCacheContextInterface interface Drupal\Core\Cache\Context core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Provides an interface for defining a calculated cache context service. 9 2
CalculatedPermissions class Drupal\Core\Session core/lib/Drupal/Core/Session/CalculatedPermissions.php Represents a calculated set of permissions with cacheable metadata.
CalculatedPermissionsInterface interface Drupal\Core\Session core/lib/Drupal/Core/Session/CalculatedPermissionsInterface.php Defines the calculated permissions interface. 2
CalculatedPermissionsItem class Drupal\Core\Session core/lib/Drupal/Core/Session/CalculatedPermissionsItem.php Represents a single entry for the calculated permissions. 1
CalculatedPermissionsItemInterface interface Drupal\Core\Session core/lib/Drupal/Core/Session/CalculatedPermissionsItemInterface.php Defines the calculated permissions item interface. 1
CalculatedPermissionsTrait trait Drupal\Core\Session core/lib/Drupal/Core/Session/CalculatedPermissionsTrait.php Trait for \Drupal\Core\Session\CalculatedPermissionsInterface.
Calculator abstract class Brick\Math\Internal vendor/brick/math/src/Internal/Calculator.php Performs basic operations on arbitrary size integers. 3 5
Calculator final class SebastianBergmann\Complexity vendor/sebastian/complexity/src/Calculator.php 1
CalculatorInterface interface Ramsey\Uuid\Math vendor/ramsey/uuid/src/Math/CalculatorInterface.php A calculator performs arithmetic operations on numbers 1 5
Call class Prophecy\Call vendor/phpspec/prophecy/src/Prophecy/Call/Call.php Call object. 9
CallableArgumentsExtractor final class Twig\Util vendor/twig/twig/src/Util/CallableArgumentsExtractor.php @author Fabien Potencier <fabien@symfony.com> 2
CallableParameter final class phpDocumentor\Reflection\Types vendor/phpdocumentor/type-resolver/src/Types/CallableParameter.php Value Object representing a Callable parameters. 1
CallableResolver class Drupal\Core\Utility core/lib/Drupal/Core/Utility/CallableResolver.php Resolves PHP callables. 5
CallableString final class phpDocumentor\Reflection\PseudoTypes vendor/phpdocumentor/type-resolver/src/PseudoTypes/CallableString.php Value Object representing the type 'string'. 1
CallableType final class SebastianBergmann\Type vendor/sebastian/type/src/type/CallableType.php
CallableTypeNode class PHPStan\PhpDocParser\Ast\Type vendor/phpstan/phpdoc-parser/src/Ast/Type/CallableTypeNode.php 7

Pagination

  • First page
  • Previous page
  • …
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Page 20
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • …
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal