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 |
---|---|---|---|---|---|---|---|---|
Tokenizer | class | Masterminds\HTML5\Parser | vendor/ |
The HTML5 tokenizer. | 2 | |||
Tokenizer | abstract class | PHP_CodeSniffer\Tokenizers | vendor/ |
2 | ||||
Tokenizer | class | Symfony\Component\CssSelector\Parser\Tokenizer | vendor/ |
CSS selector tokenizer. | 1 | |||
TokenizerEscaping | class | Symfony\Component\CssSelector\Parser\Tokenizer | vendor/ |
CSS selector tokenizer escaping applier. | 3 | |||
TokenizerException | class | PHP_CodeSniffer\Exceptions | vendor/ |
5 | ||||
TokenizerPatterns | class | Symfony\Component\CssSelector\Parser\Tokenizer | vendor/ |
CSS selector tokenizer patterns builder. | 4 | |||
TokenParser | class | Doctrine\Common\Annotations | vendor/ |
Parses a file for namespaces/use/class declarations. | 1 | |||
TokenParserInterface | interface | Twig\TokenParser | vendor/ |
Interface implemented by token parsers. | 1 | 5 | ||
TokenPointerOutOfBoundsException | class | SlevomatCodingStandard\Helpers | vendor/ |
@internal | ||||
TokenPolyfill | class | PhpParser\Internal | vendor/ |
This is a polyfill for the PhpToken class introduced in PHP 8.0. We do not actually polyfill PhpToken, because composer might end up picking a different polyfill implementation, which does not meet our requirements. | ||||
Tokens | final class | PHP_CodeSniffer\Util | vendor/ |
216 | ||||
TokenStream | class | Symfony\Component\CssSelector\Parser | vendor/ |
CSS selector token stream. | 8 | |||
TokenStream | class | PhpParser\Internal | vendor/ |
Provides operations on token streams, for use by pretty printer. | 1 | |||
TokenStream | final class | Twig | vendor/ |
Represents a token stream. | 1 | |||
Toolbar | class | Drupal\toolbar\Element | core/ |
Provides a render element for the default Drupal toolbar. | ||||
ToolbarController | class | Drupal\toolbar\Controller | core/ |
Defines a controller for the toolbar module. | 2 | |||
ToolbarHooks | class | Drupal\toolbar\Hook | core/ |
Hook implementations for toolbar. | ||||
ToolbarItem | class | Drupal\toolbar\Element | core/ |
Provides a toolbar item that is wrapped in markup for common styling. | ||||
ToolbarItemConditionsMetConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
A (placed) CKEditor 5 toolbar item's conditions must be met. | ||||
ToolbarItemConditionsMetConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Toolbar item conditions met constraint validator. | ||||
ToolbarItemConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
A CKEditor 5 toolbar item. | ||||
ToolbarItemConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Toolbar item constraint validator. | ||||
ToolbarItemDependencyConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
A CKEditor 5 toolbar item. | ||||
ToolbarItemDependencyConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Toolbar item dependency constraint validator. | ||||
ToolbarLinkBuilder | class | Drupal\user | core/ |
ToolbarLinkBuilder fills out the placeholders generated in user_toolbar(). | 2 | |||
ToolbarMenuLinkTree | class | Drupal\toolbar\Menu | core/ |
Extends MenuLinkTree to add specific theme suggestions for the toolbar. | 2 | |||
TooManyRedirectsException | class | GuzzleHttp\Exception | vendor/ |
1 | ||||
TooManyRequestsHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 1 | ||
TopBar | class | Drupal\navigation\Element | core/ |
Provides a render element for the default Drupal toolbar. | ||||
TopBarItem | final class | Drupal\navigation\Attribute | core/ |
The top bar item attribute. | 2 | |||
TopBarItemBase | abstract class | Drupal\navigation | core/ |
Base class for top bar item plugins. | 1 | 1 | ||
TopBarItemManager | final class | Drupal\navigation | core/ |
Top bar item plugin manager. | 2 | |||
TopBarItemManagerInterface | interface | Drupal\navigation | core/ |
Top bar item plugin manager. | 1 | 2 | ||
TopBarItemPluginInterface | interface | Drupal\navigation | core/ |
Interface for top bar plugins. | 1 | |||
TopLevelDataInterface | interface | Drupal\jsonapi\JsonApiResource | core/ |
Interface for objects that can appear as top-level object data. | 2 | 1 | ||
ToStringTrait | trait | Drupal\Component\Utility | core/ |
Wraps __toString in a trait to avoid some fatal errors. | 2 | |||
Totals | final class | SebastianBergmann\CodeCoverage\Report\Xml | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
Touch | class | WebDriver | vendor/ |
WebDriver\Touch class | ||||
Trace | class | GPBMetadata\Opentelemetry\Proto\Trace\V1 | vendor/ |
|||||
TraceableArgumentResolver | class | Symfony\Component\HttpKernel\Controller | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
TraceableCommand | final class | Symfony\Component\Console\Command | vendor/ |
@internal | 1 | |||
TraceableControllerResolver | class | Symfony\Component\HttpKernel\Controller | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
TraceableEncoder | class | Symfony\Component\Serializer\Debug | vendor/ |
Collects some data about encoding. | 2 | |||
TraceableEventDispatcher | class | Symfony\Component\HttpKernel\Debug | vendor/ |
Collects some data about event listeners. | ||||
TraceableEventDispatcher | class | Symfony\Component\EventDispatcher\Debug | vendor/ |
Collects some data about event listeners. | 1 | 2 | ||
TraceableNormalizer | class | Symfony\Component\Serializer\Debug | vendor/ |
Collects some data about normalization. | 1 | |||
TraceableSerializer | class | Symfony\Component\Serializer\Debug | vendor/ |
Collects some data about serialization. | 1 | |||
TraceableUrlMatcher | class | Symfony\Component\Routing\Matcher | vendor/ |
TraceableUrlMatcher helps debug path info matching by tracing the match. | ||||
TraceableValidator | class | Symfony\Component\Validator\Validator | vendor/ |
Collects some data about validator calls. | 1 | |||
TraceableValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Provides timing information via the stopwatch. | 1 |