Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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/modules/system/src/Controller/CssAssetController.php Defines a controller to serve CSS aggregates.
CssCollectionGrouper class Drupal\Core\Asset core/lib/Drupal/Core/Asset/CssCollectionGrouper.php Groups CSS assets.
CssCollectionOptimizerLazy class Drupal\Core\Asset core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php Optimizes CSS assets.
CssCollectionRenderer class Drupal\Core\Asset core/lib/Drupal/Core/Asset/CssCollectionRenderer.php Renders CSS assets.
CssColor class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/CssColor.php Validates that a value is a valid CSS color.
CssColorValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/CssColorValidator.php @author Mathieu Santostefano <msantostefano@protonmail.com>
CssCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/CssCommand.php An AJAX command for calling the jQuery css() method.
CSSLintSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\Debug vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Debug/CSSLintSniff.php
CssOptimizer class Drupal\Core\Asset core/lib/Drupal/Core/Asset/CssOptimizer.php Optimizes a CSS asset.
CssSelector class Behat\Mink\Selector vendor/behat/mink/src/Selector/CssSelector.php CSS selector engine. Transforms CSS to XPath.
CssSelectorConverter class Symfony\Component\CssSelector vendor/symfony/css-selector/CssSelectorConverter.php CssSelectorConverter is the main entry point of the component and can convert CSS selectors to XPath expressions. 2
Csv class PHP_CodeSniffer\Reports vendor/squizlabs/php_codesniffer/src/Reports/Csv.php
CsvEncoder class Symfony\Component\Serializer\Encoder vendor/symfony/serializer/Encoder/CsvEncoder.php Encodes CSV data. 2
CsvEncoderContextBuilder final class Symfony\Component\Serializer\Context\Encoder vendor/symfony/serializer/Context/Encoder/CsvEncoderContextBuilder.php A helper providing autocompletion for available CsvEncoder options.
Ctype final class Symfony\Polyfill\Ctype vendor/symfony/polyfill-ctype/Ctype.php Ctype implementation through regex.
CType class Google\Protobuf\Internal\FieldOptions vendor/google/protobuf/src/Google/Protobuf/Internal/FieldOptions/CType.php Protobuf type <code>google.protobuf.FieldOptions.CType</code>
Curl class JsonSchema\Uri\Retrievers vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php Tries to retrieve JSON schemas from a URI using cURL library
CurlClient class OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery vendor/open-telemetry/sdk/Common/Http/Psr/Client/Discovery/CurlClient.php 1
CurlDownloader class Composer\Util\Http vendor/composer/composer/src/Composer/Util/Http/CurlDownloader.php @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/lullabot/php-webdriver/lib/WebDriver/Exception/CurlExec.php WebDriver\Exception\CurlExec class 1
CurlFactory class GuzzleHttp\Handler vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php Creates curl resources from a request
CurlFactoryInterface interface GuzzleHttp\Handler vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php 1
CurlHandler class GuzzleHttp\Handler vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php HTTP handler that uses cURL easy handles as a transport layer. 1
CurlMultiHandler class GuzzleHttp\Handler vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php Returns an asynchronous response using curl_multi_* functions. 1
CurlResponse class Composer\Util\Http vendor/composer/composer/src/Composer/Util/Http/CurlResponse.php @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/lullabot/php-webdriver/lib/WebDriver/Service/CurlService.php WebDriver\Service\CurlService class
CurlServiceInterface interface WebDriver\Service vendor/lullabot/php-webdriver/lib/WebDriver/Service/CurlServiceInterface.php WebDriver\Service\CurlServiceInterface class 1
CurlSslVerifierSniff class DrupalPractice\Sniffs\FunctionCalls vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/FunctionCalls/CurlSslVerifierSniff.php Make sure that CURLOPT_SSL_VERIFYPEER is not disabled, since that is a security issue.
Currency class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Currency.php Validates that a value is a valid 3-letter ISO 4217 currency name.
CurrencyValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/CurrencyValidator.php Validates whether a value is a valid currency.
Current class Drupal\user\Plugin\views\filter core/modules/user/src/Plugin/views/filter/Current.php Filter handler for the current user.
CurrentLanguageContext class Drupal\Core\Language\ContextProvider core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php Sets the current language as a context.
CurrentPathStack class Drupal\Core\Path core/lib/Drupal/Core/Path/CurrentPathStack.php Represents the current path for the current request. 10
CurrentRouteMatch class Drupal\Core\Routing core/lib/Drupal/Core/Routing/CurrentRouteMatch.php Default object for current_route_match service.
CurrentThemeCondition class Drupal\system\Plugin\Condition core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php Provides a 'Current Theme' condition.
CurrentUser class Drupal\user\Plugin\views\argument_default core/modules/user/src/Plugin/views/argument_default/CurrentUser.php Default argument plugin to extract the current user.
CurrentUserContext class Drupal\user\ContextProvider core/modules/user/src/ContextProvider/CurrentUserContext.php Sets the current user as a context. 2
Cursor final class Symfony\Component\Console vendor/symfony/console/Cursor.php @author Pierre du Plessis <pdples@gmail.com> 2
Cursor class Symfony\Component\VarDumper\Cloner vendor/symfony/var-dumper/Cloner/Cursor.php Represents the current state of a dumper while dumping. 2
Custom class Drupal\views\Plugin\views\field core/modules/views/src/Plugin/views/field/Custom.php A handler to provide a field that is completely custom by the administrator.
CustomAccessCheck class Drupal\Core\Access core/lib/Drupal/Core/Access/CustomAccessCheck.php Defines an access checker that allows specifying a custom method for access.
CustomCssFile final class SebastianBergmann\CodeCoverage\Report\Html vendor/phpunit/php-code-coverage/src/Report/Html/CustomCssFile.php @psalm-immutable 1
CustomFilterIterator class Symfony\Component\Finder\Iterator vendor/symfony/finder/Iterator/CustomFilterIterator.php CustomFilterIterator filters files by applying anonymous functions. 1
CustomNormalizer final class Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/CustomNormalizer.php @author Jordi Boggiano <j.boggiano@seld.be>
CustomPageExceptionHtmlSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php Exception subscriber for handling core custom HTML error pages.
CustomStrings class Drupal\Core\StringTranslation\Translator core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php String translator using overrides from variables.
CutArrayStub class Symfony\Component\VarDumper\Caster vendor/symfony/var-dumper/Caster/CutArrayStub.php Represents a cut array.
CutStub class Symfony\Component\VarDumper\Caster vendor/symfony/var-dumper/Caster/CutStub.php Represents the main properties of a PHP variable, pre-casted by a caster. 1 1
CyclomaticComplexityCalculatingVisitor final class SebastianBergmann\Complexity vendor/sebastian/complexity/src/Visitor/CyclomaticComplexityCalculatingVisitor.php 1
CyclomaticComplexitySniff class PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Metrics/CyclomaticComplexitySniff.php

Pagination

  • First page
  • Previous page
  • …
  • Page 39
  • Page 40
  • Page 41
  • Page 42
  • Page 43
  • Page 44
  • Page 45
  • Page 46
  • Page 47
  • …
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal