Primary tabs
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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
LibraryDependencyResolverInterface | interface |
Drupal\ |
core/ |
Resolves the dependencies of asset (CSS/JavaScript) libraries. | 1 | ||
LibraryDiscovery | class |
Drupal\ |
core/ |
Discovers available asset libraries in Drupal. | 1 | 2 | |
LibraryDiscoveryCollector | class |
Drupal\ |
core/ |
A CacheCollector implementation for building library extension info. | 1 | 2 | |
LibraryDiscoveryInterface | interface |
Drupal\ |
core/ |
Discovers information for asset (CSS/JavaScript) libraries. | 1 | ||
AuthenticationCollector | class |
Drupal\ |
core/ |
A collector class for authentication providers. | 2 | 2 | |
AuthenticationCollectorInterface | interface |
Drupal\ |
core/ |
Interface for collectors of registered authentication providers. | 1 | ||
AuthenticationManager | class |
Drupal\ |
core/ |
Manager for authentication. | 1 | 2 | |
AuthenticationProviderChallengeInterface | interface |
Drupal\ |
core/ |
Generate a challenge when access is denied for unauthenticated users. | 1 | 1 | |
AuthenticationProviderFilterInterface | interface |
Drupal\ |
core/ |
Restrict authentication methods to a subset of the site. | 2 | 2 | |
AuthenticationProviderInterface | interface |
Drupal\ |
core/ |
Interface for authentication providers. | 7 | 7 | |
BatchBuilder | class |
Drupal\ |
core/ |
Builds an array for a batch process. | 15 | ||
BatchStorageInterface | interface |
Drupal\ |
core/ |
Defines a common interface for batch storage operations. | 1 | 3 | |
Percentage | class |
Drupal\ |
core/ |
Helper methods for the batch system. | 2 | ||
Block | class |
Drupal\ |
core/ |
Defines a Block annotation object. | |||
BlockBase | abstract class |
Drupal\ |
core/ |
Defines a base block implementation that most blocks plugins will extend. | 4 | 5 | |
BlockManager | class |
Drupal\ |
core/ |
Manages discovery and instantiation of block plugins. | 1 | 2 | |
BlockManagerInterface | interface |
Drupal\ |
core/ |
Provides an interface for the discovery and instantiation of block plugins. | 1 | 8 | |
BlockPluginInterface | interface |
Drupal\ |
core/ |
Defines the required interface for all block plugins. | 5 | 16 | 1 |
BlockPluginTrait | trait |
Drupal\ |
core/ |
Provides the base implementation of a block plugin. | |||
MainContentBlockPluginInterface | interface |
Drupal\ |
core/ |
The interface for "main page content" blocks. | 1 | ||
MessagesBlockPluginInterface | interface |
Drupal\ |
core/ |
The interface for "messages" (#type => status_messages) blocks. | |||
TitleBlockPluginInterface | interface |
Drupal\ |
core/ |
The interface for "title" blocks. | 1 | ||
Breadcrumb | class |
Drupal\ |
core/ |
Used to return generated breadcrumbs with associated cacheability metadata. | 12 | ||
BreadcrumbBuilderInterface | interface |
Drupal\ |
core/ |
Defines an interface for classes that build breadcrumbs. | 7 | 6 | |
BreadcrumbManager | class |
Drupal\ |
core/ |
Provides a breadcrumb manager. | 1 | 2 | |
ChainBreadcrumbBuilderInterface | interface |
Drupal\ |
core/ |
Defines an interface a chained service that builds the breadcrumb. | 1 | ||
BackendChain | class |
Drupal\ |
core/ |
Defines a chained cache implementation for combining multiple cache backends. | 2 | 4 | |
Cache | class |
Drupal\ |
core/ |
Helper methods for cache. | 155 | ||
CacheableAjaxResponse | class |
Drupal\ |
core/ |
A AjaxResponse that contains and can expose cacheability metadata. | 1 | ||
CacheableDependencyInterface | interface |
Drupal\ |
core/ |
Defines an interface for objects which may be used by other cached objects. | 47 | 68 | |
CacheableDependencyTrait | trait |
Drupal\ |
core/ |
Trait for \Drupal\Core\Cache\CacheableDependencyInterface. | 22 | ||
CacheableJsonResponse | class |
Drupal\ |
core/ |
A JsonResponse that contains and can expose cacheability metadata. | 5 | ||
CacheableMetadata | class |
Drupal\ |
core/ |
Defines a generic class for passing cacheability metadata. | 2 | 129 | |
CacheableRedirectResponse | class |
Drupal\ |
core/ |
A RedirectResponse that contains and can expose cacheability metadata. | 2 | ||
CacheableResponse | class |
Drupal\ |
core/ |
A response that contains and can expose cacheability metadata. | 1 | 9 | |
CacheableResponseInterface | interface |
Drupal\ |
core/ |
Defines an interface for responses that can expose cacheability metadata. | 8 | 19 | |
CacheableResponseTrait | trait |
Drupal\ |
core/ |
Provides an implementation of CacheableResponseInterface. | 5 | ||
CacheBackendInterface | interface |
Drupal\ |
core/ |
Defines an interface for cache implementations. | 5 | 86 | 27 |
CacheCollector | abstract class |
Drupal\ |
core/ |
Default implementation for CacheCollectorInterface. | 7 | 7 | |
CacheCollectorInterface | interface |
Drupal\ |
core/ |
Provides a caching wrapper to be used in place of large structures. | 3 | 2 | |
CacheFactoryInterface | interface |
Drupal\ |
core/ |
An interface defining cache factory classes. | 2 | 2 | |
CacheRedirect | class |
Drupal\ |
core/ |
Defines a value object to represent a cache redirect. | 2 | ||
CacheTagsChecksumInterface | interface |
Drupal\ |
core/ |
Provides checksums for cache tag invalidations. | 1 | ||
CacheTagsChecksumTrait | trait |
Drupal\ |
core/ |
A trait for cache tag checksum implementations. | |||
CacheTagsInvalidatorInterface | interface |
Drupal\ |
core/ |
Defines required methods for classes wanting to handle cache tag changes. | 5 | 12 | |
ChainedFastBackend | class |
Drupal\ |
core/ |
Defines a backend with a fast and a consistent backend chain. | 2 | ||
AccountPermissionsCacheContext | class |
Drupal\ |
core/ |
Defines the AccountPermissionsCacheContext service, for "per permission" caching. | 2 | ||
CacheContextInterface | interface |
Drupal\ |
core/ |
Provides an interface for defining a cache context service. | 21 | 6 | |
CacheContextsPass | class |
Drupal\ |
core/ |
Adds cache_contexts parameter to the container. | 1 | ||
CalculatedCacheContextInterface | interface |
Drupal\ |
core/ |
Provides an interface for defining a calculated cache context service. | 9 | 3 |