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 |
---|---|---|---|---|---|---|---|---|
ControllerResolver | class | Drupal\Core\Controller | core/ |
ControllerResolver to enhance controllers beyond Symfony's basic handling. | ||||
ControllerResolverInterface | interface | Symfony\Component\HttpKernel\Controller | vendor/ |
A ControllerResolverInterface implementation knows how to determine the controller to execute based on a Request object. | 3 | 2 | ||
ControllerResolverInterface | interface | Drupal\Core\Controller | core/ |
Extends the ControllerResolverInterface from symfony. | 1 | 2 | ||
ControlSignatureSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures | vendor/ |
|||||
ControlSignatureSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures | vendor/ |
|||||
ControlSignatureSniff | class | Drupal\Sniffs\ControlStructures | vendor/ |
Verifies that control statements conform to their coding standards. | ||||
ControlStructureSpacingSniff | class | PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures | vendor/ |
1 | ||||
ControlStructureSpacingSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace | vendor/ |
|||||
ControlStructureSpacingSniff | class | PHP_CodeSniffer\Standards\PSR12\Sniffs\ControlStructures | vendor/ |
|||||
Convert | class | Drupal\system\Plugin\ImageToolkit\Operation\gd | core/ |
Defines GD2 convert operation. | ||||
ConvertImageEffect | class | Drupal\image\Plugin\ImageEffect | core/ |
Converts an image resource. | ||||
ConvertLogTypes | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
ConvertTokens | class | Drupal\user\Plugin\migrate\process | core/ |
Plugin to replace !tokens with [tokens]. | ||||
Cookie | class | Symfony\Component\HttpFoundation | vendor/ |
Represents a cookie. | 6 | |||
Cookie | class | Drupal\user\Authentication\Provider | core/ |
Cookie based authentication provider. | 2 | |||
Cookie | class | Symfony\Component\BrowserKit | vendor/ |
Cookie represents an HTTP cookie. | 1 | |||
CookieJar | class | Symfony\Component\BrowserKit | vendor/ |
CookieJar. | 1 | |||
CookieJar | class | GuzzleHttp\Cookie | vendor/ |
Cookie jar that stores cookies as an array | 2 | 1 | ||
CookieJarInterface | interface | GuzzleHttp\Cookie | vendor/ |
Stores HTTP cookies. | 1 | 1 | ||
CookiesCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the CookiesCacheContext service, for "per cookie" caching. | ||||
CopyrightElement | class | PharIo\Manifest | vendor/ |
|||||
CopyrightInformation | class | PharIo\Manifest | vendor/ |
|||||
CoreDriver | abstract class | Behat\Mink\Driver | vendor/ |
Core driver. All other drivers should extend this class for future compatibility. | 2 | |||
CoreExtension | final class | Twig\Extension | vendor/ |
3 | ||||
CoreServiceProvider | class | Drupal\Core | core/ |
ServiceProvider class for mandatory core services. | ||||
CoreVersionRequirementSniff | class | DrupalPractice\Sniffs\InfoFiles | vendor/ |
Checks if the *.info.yml file contains core_version_requirement. | ||||
Coroutine | final class | GuzzleHttp\Promise | vendor/ |
Creates a promise that is resolved using a generator that yields values or promises (somewhat similar to C#'s async keyword). | ||||
Cors | class | Asm89\Stack | vendor/ |
|||||
CorsCompilerPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Provides a compiler pass which disables the CORS middleware in case disabled. | 1 | |||
CorsService | class | Asm89\Stack | vendor/ |
|||||
Count | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates a collection's element count. | 1 | 2 | ||
Count | class | PHPUnit\Framework\Constraint | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | 2 | ||
CountConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Count constraint. | ||||
Counter | final class | SebastianBergmann\LinesOfCode | vendor/ |
1 | ||||
Counter | class | Drupal\views\Plugin\views\field | core/ |
Field handler to show a counter of the current row. | ||||
Counter | final class | OpenTelemetry\SDK\Metrics | vendor/ |
@internal | ||||
CounterInterface | interface | OpenTelemetry\API\Metrics | vendor/ |
2 | 4 | |||
Country | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates a value is a valid ISO 3166-1 alpha-2 country code. | ||||
CountryCodeConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
|||||
CountryManager | class | Drupal\Core\Locale | core/ |
Provides list of countries. | ||||
CountryManagerInterface | interface | Drupal\Core\Locale | core/ |
Defines a common interface for country managers. | 1 | 2 | ||
CountryValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value is a valid country code. | ||||
CountValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
@author Bernhard Schussek <bschussek@gmail.com> | ||||
Coverage | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
CoverageCloverToReport | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
CoverageCrap4jToReport | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
CoverageHtmlToReport | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
CoveragePhpToReport | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
CoverageTextToReport | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
CoverageXmlToReport | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit |