Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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
File
-
core/
core.api.php, line 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
CssAssetController | class | Drupal\system\Controller | core/ |
Defines a controller to serve CSS aggregates. | ||||
CssCollectionGrouper | class | Drupal\Core\Asset | core/ |
Groups CSS assets. | ||||
CssCollectionOptimizerLazy | class | Drupal\Core\Asset | core/ |
Optimizes CSS assets. | ||||
CssCollectionRenderer | class | Drupal\Core\Asset | core/ |
Renders CSS assets. | ||||
CssColor | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid CSS color. | ||||
CssColorValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Mathieu Santostefano <msantostefano@protonmail.com> | ||||
CssCommand | class | Drupal\Core\Ajax | core/ |
An AJAX command for calling the jQuery css() method. | ||||
CSSLintSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Debug | vendor/ |
|||||
CssOptimizer | class | Drupal\Core\Asset | core/ |
Optimizes a CSS asset. | ||||
CssSelector | class | Behat\Mink\Selector | vendor/ |
CSS selector engine. Transforms CSS to XPath. | ||||
CssSelectorConverter | class | Symfony\Component\CssSelector | vendor/ |
CssSelectorConverter is the main entry point of the component and can convert CSS selectors to XPath expressions. | 2 | |||
Csv | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
CsvEncoder | class | Symfony\Component\Serializer\Encoder | vendor/ |
Encodes CSV data. | 2 | |||
CsvEncoderContextBuilder | final class | Symfony\Component\Serializer\Context\Encoder | vendor/ |
A helper providing autocompletion for available CsvEncoder options. | ||||
Ctype | final class | Symfony\Polyfill\Ctype | vendor/ |
Ctype implementation through regex. | ||||
CType | class | Google\Protobuf\Internal\FieldOptions | vendor/ |
Protobuf type <code>google.protobuf.FieldOptions.CType</code> | ||||
Curl | class | JsonSchema\Uri\Retrievers | vendor/ |
Tries to retrieve JSON schemas from a URI using cURL library | ||||
CurlClient | class | OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery | vendor/ |
1 | ||||
CurlDownloader | class | Composer\Util\Http | vendor/ |
@internal @author Jordi Boggiano <j.boggiano@seld.be> @author Nicolas Grekas <p@tchwork.com> @phpstan-type Attributes array{retryAuthFailure: bool, redirects: int<0, max>, retries: int<0, max>, storeAuth:… | 1 | |||
CurlExec | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\CurlExec class | 1 | |||
CurlFactory | class | GuzzleHttp\Handler | vendor/ |
Creates curl resources from a request | ||||
CurlFactoryInterface | interface | GuzzleHttp\Handler | vendor/ |
1 | ||||
CurlHandler | class | GuzzleHttp\Handler | vendor/ |
HTTP handler that uses cURL easy handles as a transport layer. | 1 | |||
CurlMultiHandler | class | GuzzleHttp\Handler | vendor/ |
Returns an asynchronous response using curl_multi_* functions. | 1 | |||
CurlResponse | class | Composer\Util\Http | vendor/ |
@phpstan-type CurlInfo array{url: mixed, content_type: mixed, http_code: mixed, header_size: mixed, request_size: mixed, filetime: mixed, ssl_verify_result: mixed, redirect_count: mixed, total_time: mixed, namelookup_time: mixed, connect_time: mixed,… | ||||
CurlService | class | WebDriver\Service | vendor/ |
WebDriver\Service\CurlService class | ||||
CurlServiceInterface | interface | WebDriver\Service | vendor/ |
WebDriver\Service\CurlServiceInterface class | 1 | |||
CurlSslVerifierSniff | class | DrupalPractice\Sniffs\FunctionCalls | vendor/ |
Make sure that CURLOPT_SSL_VERIFYPEER is not disabled, since that is a security issue. | ||||
Currency | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid 3-letter ISO 4217 currency name. | ||||
CurrencyValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value is a valid currency. | ||||
Current | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for the current user. | ||||
CurrentLanguageContext | class | Drupal\Core\Language\ContextProvider | core/ |
Sets the current language as a context. | ||||
CurrentPathStack | class | Drupal\Core\Path | core/ |
Represents the current path for the current request. | 10 | |||
CurrentRouteMatch | class | Drupal\Core\Routing | core/ |
Default object for current_route_match service. | ||||
CurrentThemeCondition | class | Drupal\system\Plugin\Condition | core/ |
Provides a 'Current Theme' condition. | ||||
CurrentUser | class | Drupal\user\Plugin\views\argument_default | core/ |
Default argument plugin to extract the current user. | ||||
CurrentUserContext | class | Drupal\user\ContextProvider | core/ |
Sets the current user as a context. | 2 | |||
Cursor | final class | Symfony\Component\Console | vendor/ |
@author Pierre du Plessis <pdples@gmail.com> | 2 | |||
Cursor | class | Symfony\Component\VarDumper\Cloner | vendor/ |
Represents the current state of a dumper while dumping. | 2 | |||
Custom | class | Drupal\views\Plugin\views\field | core/ |
A handler to provide a field that is completely custom by the administrator. | ||||
CustomAccessCheck | class | Drupal\Core\Access | core/ |
Defines an access checker that allows specifying a custom method for access. | ||||
CustomCssFile | final class | SebastianBergmann\CodeCoverage\Report\Html | vendor/ |
@psalm-immutable | 1 | |||
CustomFilterIterator | class | Symfony\Component\Finder\Iterator | vendor/ |
CustomFilterIterator filters files by applying anonymous functions. | 1 | |||
CustomNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> | ||||
CustomPageExceptionHtmlSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Exception subscriber for handling core custom HTML error pages. | ||||
CustomStrings | class | Drupal\Core\StringTranslation\Translator | core/ |
String translator using overrides from variables. | ||||
CutArrayStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents a cut array. | ||||
CutStub | class | Symfony\Component\VarDumper\Caster | vendor/ |
Represents the main properties of a PHP variable, pre-casted by a caster. | 1 | 1 | ||
CyclomaticComplexityCalculatingVisitor | final class | SebastianBergmann\Complexity | vendor/ |
1 | ||||
CyclomaticComplexitySniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics | vendor/ |