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 |
---|---|---|---|---|---|---|---|---|
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/ |
Tests Drupal\Core\Cache\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. | 2 | |||
CallableResolver | class | Drupal\Core\Utility | core/ |
Resolves PHP callables. | 14 | 2 | ||
CallableResolverTest | class | Drupal\Tests\Core\Utility | core/ |
Tests Drupal\Core\Utility\CallableResolver. | ||||
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 | |||
CanaryTransportFactory | class | Drupal\mailer_transport_factory_kernel_test\Transport | core/ |
A transport factory only used to test the transport factory adapter. | ||||
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. | ||||
CastedIntFieldJoin | class | Drupal\views\Plugin\views\join | core/ |
Implementation for the "casted_int_field_join" join. | 1 | |||
CastedIntFieldJoinTestBase | abstract class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the "casted_int_field_join" join plugin. | 3 | 3 | ||
CastSql | class | Drupal\views\Plugin\views\query | core/ |
Cast handling in SQL. | 2 | |||
CastSqlInterface | interface | Drupal\views\Plugin\views\query | core/ |
Defines an interface for defining cast expressions in SQL. | 2 | 1 | ||
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. | 7 | 7 | ||
CategorizingPluginManagerTrait | trait | Drupal\Core\Plugin | core/ |
Provides a trait for the CategorizingPluginManagerInterface. | 6 | |||
CategorizingPluginManagerTraitTest | class | Drupal\Tests\Core\Plugin | core/ |
Tests Drupal\Core\Plugin\CategorizingPluginManagerTrait. | ||||
CategoryAutocompleteController | class | Drupal\block\Controller | core/ |
Returns autocomplete responses for block categories. | 1 | |||
CategoryAutocompleteTest | class | Drupal\Tests\block\Unit | core/ |
Tests Drupal\block\Controller\CategoryAutocompleteController. | ||||
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. | 3 | |||
ChainedFastBackendFactory | class | Drupal\Core\Cache | core/ |
Defines the chained fast cache backend factory. | 1 | 2 | ||
ChainedFastBackendFactoryTest | class | Drupal\Tests\Core\Cache | core/ |
Tests Drupal\Core\Cache\ChainedFastBackendFactory. | ||||
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/ |
Tests Drupal\Core\Cache\ChainedFastBackend. | ||||
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/ |
Tests Drupal\Core\Render\Placeholder\ChainedPlaceholderStrategy. | ||||
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 20
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.