Classes, traits, and interfaces - 11.x - drupal
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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
CachedStorageTest | class | Drupal\Tests\Core\Config | core/ |
Tests the interaction of cache and file storage in CachedStorage. | ||||
CachedStorageTest | class | Drupal\KernelTests\Core\Config\Storage | core/ |
Tests CachedStorage operations. | ||||
CachedStrategy | class | Drupal\Core\Render\Placeholder | core/ |
Looks up placeholders in the render cache and returns those we could find. | 2 | |||
CacheFactory | class | Drupal\Core\Cache | core/ |
Defines the cache backend factory. | 2 | 2 | ||
CacheFactoryDecorator | class | Drupal\performance_test\Cache | core/ |
Decorates a cache factory to register all calls to the cache system. | 2 | |||
CacheFactoryInterface | interface | Drupal\Core\Cache | core/ |
An interface defining cache factory classes. | 11 | 4 | ||
CacheFactoryTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\CacheFactory[[api-linebreak]] @group Cache | ||||
CacheItem | class | Drupal\Tests\Core\Session | core/ |
Provides a simple cache. | ||||
CacheOptionalInterface | interface | Drupal\Core\Cache | core/ |
Indicates that caching is optional. | 2 | 3 | ||
CachePluginBase | abstract class | Drupal\views\Plugin\views\cache | core/ |
The base plugin to handle caching. | 3 | 10 | ||
CachePreWarmer | class | Drupal\Core\PreWarm | core/ |
Prewarms caches for services that implement PreWarmableInterface. | 1 | 2 | ||
CachePreWarmerInterface | interface | Drupal\Core\PreWarm | core/ |
Interface for cache prewarmers. | 1 | |||
CachePreWarmerTest | class | Drupal\Tests\Core\PreWarm | core/ |
@coversDefaultClass \Drupal\Core\PreWarm\CachePreWarmer[[api-linebreak]] @group PreWarm | ||||
CacheRedirect | class | Drupal\Core\Cache | core/ |
Defines a value object to represent a cache redirect. | 3 | |||
CacheRouterRebuildSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Clear cache tags when the router is rebuilt. | 2 | |||
CacheTagPreloadSubscriber | class | Drupal\Core\Cache\EventSubscriber | core/ |
Preloads frequently used cache tags. | 2 | |||
CacheTagsChecksumDecorator | class | Drupal\performance_test\Cache | core/ |
Wraps an existing cache tags checksum invalidator to track calls separately. | 2 | |||
CacheTagsChecksumInterface | interface | Drupal\Core\Cache | core/ |
Provides checksums for cache tag invalidations. | 2 | 3 | ||
CacheTagsChecksumPreloadInterface | interface | Drupal\Core\Cache | core/ |
Registers cache tags for preloading. | 2 | 2 | ||
CacheTagsChecksumTrait | trait | Drupal\Core\Cache | core/ |
A trait for cache tag checksum implementations. | ||||
CacheTagsInvalidator | class | Drupal\Core\Cache | core/ |
Passes cache tag events to classes that wish to respond to them. | 1 | 2 | ||
CacheTagsInvalidatorInterface | interface | Drupal\Core\Cache | core/ |
Defines required methods for classes wanting to handle cache tag changes. | 10 | 21 | ||
CacheTagsInvalidatorTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\CacheTagsInvalidator[[api-linebreak]] @group Cache | ||||
CacheTagsPurgeInterface | interface | Drupal\Core\Cache | core/ |
Provides purging of cache tag invalidations. | 2 | 2 | ||
CacheTagTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests tag cache plugin. | ||||
CacheTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests pluggable caching for views. | ||||
CacheTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\Cache[[api-linebreak]] @group Cache | ||||
CacheTestBase | abstract class | Drupal\Tests\system\Functional\Cache | core/ |
Provides helper methods for cache tests. | 1 | |||
CacheTestController | class | Drupal\cache_test\Controller | core/ |
Controller routines for cache_test routes. | ||||
CacheTestTrait | trait | Drupal\Tests\system\Traits | core/ |
Provides helper methods for interacting with cache backends. | 2 | |||
CacheWebTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests pluggable caching for views via a web test. | ||||
CalculatedCacheContextInterface | interface | Drupal\Core\Cache\Context | core/ |
Provides an interface for defining a calculated cache context service. | 10 | 3 | ||
CalculatedPermissions | class | Drupal\Core\Session | core/ |
Represents a calculated set of permissions with cacheable metadata. | 4 | |||
CalculatedPermissionsInterface | interface | Drupal\Core\Session | core/ |
Defines the calculated permissions interface. | 2 | 1 | ||
CalculatedPermissionsItem | class | Drupal\Core\Session | core/ |
Represents a single entry for the calculated permissions. | 9 | |||
CalculatedPermissionsItemInterface | interface | Drupal\Core\Session | core/ |
Defines the calculated permissions item interface. | 1 | |||
CalculatedPermissionsItemTest | class | Drupal\Tests\Core\Session | core/ |
Tests the CalculatedPermissionsItem value object. | ||||
CalculatedPermissionsTest | class | Drupal\Tests\Core\Session | core/ |
Tests the CalculatedPermissions value object. | ||||
CalculatedPermissionsTrait | trait | Drupal\Core\Session | core/ |
Trait for \Drupal\Core\Session\CalculatedPermissionsInterface. | ||||
CallableClass | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
CallableResolver | class | Drupal\Core\Utility | core/ |
Resolves PHP callables. | 14 | 2 | ||
CallableResolverTest | class | Drupal\Tests\Core\Utility | core/ |
@coversDefaultClass \Drupal\Core\Utility\CallableResolver[[api-linebreak]] @group Utility | ||||
Callback | class | Drupal\migrate\Plugin\migrate\process | core/ |
Passes the source value to a callback. | 1 | |||
Callbacks | class | Drupal\ajax_forms_test | core/ |
Simple object for testing methods as Ajax callbacks. | 6 | |||
Callbacks | class | Drupal\form_test | core/ |
Simple class for testing methods as Form API callbacks. | 5 | |||
Callbacks | class | Drupal\entity_test | core/ |
Simple object with callbacks. | 1 | |||
CallbackTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the callback process plugin. | ||||
CallsDestructableServiceController | final class | Drupal\destructable_test\Controller | core/ |
Controller to instantiate the destructable service. | ||||
CAlterHooks | class | Drupal\ccc_hook_order_test\Hook | core/ |
This class contains hook implementations. | 1 | |||
CanaryTransport | class | Drupal\mailer_transport_factory_kernel_test\Transport | core/ |
A transport only used to test the transport factory adapter. | 1 |
Pagination
- Previous page
- Page 21
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.