Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
CacheContextsPass | class | Drupal\Core\Cache\Context | core/ |
Adds cache_contexts parameter to the container. | 1 | |||
CachedDataUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the shared tempstore cache in the UI. | ||||
CachedDiscoveryClearer | class | Drupal\Core\ProxyClass\Plugin | core/ |
Provides a proxy class for \Drupal\Core\Plugin\CachedDiscoveryClearer. | ||||
CachedDiscoveryClearer | class | Drupal\Core\Plugin | core/ |
Defines a class which is capable of clearing the cache on plugin managers. | 2 | |||
CachedDiscoveryClearerInterface | interface | Drupal\Core\Plugin | core/ |
Provides a way to clear static caches of all plugin managers. | 2 | |||
CachedDiscoveryInterface | interface | Drupal\Component\Plugin\Discovery | core/ |
Interface for discovery components holding a cache of plugin definitions. | 3 | 6 | ||
CacheDecoratorInterface | interface | Drupal\Core\CacheDecorator | core/ |
Defines an interface for cache decorator implementations. | ||||
CachedStorage | class | Drupal\Core\Config | core/ |
Defines the cached storage. | 2 | 2 | ||
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. | ||||
CacheFactory | class | Drupal\Core\Cache | core/ |
1 | 2 | |||
CacheFactoryInterface | interface | Drupal\Core\Cache | core/ |
An interface defining cache factory classes. | 9 | 3 | ||
CacheFactoryTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\CacheFactory @group Cache | ||||
CachePluginBase | abstract class | Drupal\views\Plugin\views\cache | core/ |
The base plugin to handle caching. | 3 | 8 | ||
CacheRouterRebuildSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Clear cache tags when the router is rebuilt. | 2 | |||
CacheTagsChecksumInterface | interface | Drupal\Core\Cache | core/ |
Provides checksums for cache tag invalidations. | 1 | 1 | ||
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. | 6 | 18 | ||
CacheTagsInvalidatorTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\CacheTagsInvalidator @group Cache | ||||
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 @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. | ||||
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 | ||
CallableClass | class | Drupal\Tests\Component\EventDispatcher | core/ |
|||||
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. | 3 | |||
Callbacks | class | Drupal\form_test | core/ |
Simple class for testing methods as Form API callbacks. | 1 | |||
CallbackTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the callback process plugin. | ||||
CancelUser | class | Drupal\user\Plugin\Action | core/ |
Cancels a user account. | ||||
CaseInsensitivePathTest | class | Drupal\FunctionalTests\Routing | core/ |
Tests incoming path case insensitivity. | ||||
CaseSensitivityTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests handling case sensitive collation. | ||||
CategorizingPluginManager | class | Drupal\Tests\Core\Plugin | core/ |
Class that allows testing the trait. | ||||
CategorizingPluginManagerInterface | interface | Drupal\Component\Plugin | core/ |
Defines an interface for plugin managers that categorize plugin definitions. | 6 | 6 | ||
CategorizingPluginManagerTrait | trait | Drupal\Core\Plugin | core/ |
Provides a trait for the CategorizingPluginManagerInterface. | 5 | |||
CategorizingPluginManagerTraitTest | class | Drupal\Tests\Core\Plugin | core/ |
@coversDefaultClass \Drupal\Core\Plugin\CategorizingPluginManagerTrait @group Plugin | ||||
CategoryAutocompleteController | class | Drupal\block\Controller | core/ |
Returns autocomplete responses for block categories. | 1 | |||
CategoryAutocompleteTest | class | Drupal\Tests\block\Unit | core/ |
@coversDefaultClass \Drupal\block\Controller\CategoryAutocompleteController @group block | ||||
ChainBreadcrumbBuilderInterface | interface | Drupal\Core\Breadcrumb | core/ |
Defines an interface a chained service that builds the breadcrumb. | 1 | |||
ChainedFastBackend | class | Drupal\Core\Cache | core/ |
Defines a backend with a fast and a consistent backend chain. | 2 | |||
ChainedFastBackendFactory | class | Drupal\Core\Cache | core/ |
Defines the chained fast cache backend factory. | 2 | |||
ChainedFastBackendTest | class | Drupal\KernelTests\Core\Cache | core/ |
Unit test of the fast chained backend using the generic cache unit test base. | ||||
ChainedFastBackendTest | class | Drupal\Tests\Core\Cache | core/ |
@coversDefaultClass \Drupal\Core\Cache\ChainedFastBackend @group Cache | ||||
ChainedPlaceholderStrategy | class | Drupal\Core\Render\Placeholder | core/ |
Renders placeholders using a chain of placeholder strategies. | 1 | 2 | ||
ChainedPlaceholderStrategyTest | class | Drupal\Tests\Core\Render\Placeholder | core/ |
@coversDefaultClass \Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy @group Render | ||||
ChainEntityResolver | class | Drupal\serialization\EntityResolver | core/ |
Resolver delegating the entity resolution to a chain of resolvers. | 1 | 2 | ||
ChainEntityResolverInterface | interface | Drupal\serialization\EntityResolver | core/ |
An interface for delegating an entity resolution to a chain of resolvers. | 1 |
Pagination
- Previous page
- Page 18
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.