Classes, traits, and interfaces in Drupal 9
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 |
|---|---|---|---|---|---|---|---|
| ThemeLocalTask | class |
Drupal\ |
core/ |
Provides dynamic tabs based on active themes. | 1 | ||
| ThemeLocalTask | class |
Drupal\ |
core/ |
Provides dynamic tabs based on active themes. | 1 | ||
| ThemeManager | class |
Drupal\ |
core/ |
Provides the default implementation of a theme manager. | 2 | ||
| ThemeManagerInterface | interface |
Drupal\ |
core/ |
Provides a high level access to the active theme and methods to use it. | 1 | 18 | |
| ThemeNegotiator | class |
Drupal\ |
core/ |
Provides a class which determines the active theme of the page. | 1 | 2 | |
| ThemeNegotiatorInterface | interface |
Drupal\ |
core/ |
Defines an interface for classes which determine the active theme. | 10 | 8 | |
| ThemeNegotiatorTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Theme\ThemeNegotiator @group Theme | |||
| ThemeRegistry | class |
Drupal\ |
core/ |
Builds the run-time theme registry. | 2 | ||
| ThemeRegistryLoader | class |
Drupal\ |
core/ |
Loads templates based on information from the Drupal theme registry. | 1 | 2 | |
| ThemeRegistryLoaderTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Template\Loader\ThemeRegistryLoader @group Template | |||
| ThemeRenderAndAutoescapeTest | class |
Drupal\ |
core/ |
Tests the theme_render_and_autoescape() function. | |||
| ThemeSettings | class |
Drupal\ |
core/ |
Drupal 7 theme settings source from database. | |||
| ThemeSettings | class |
Drupal\ |
core/ |
Persist theme settings to the config system. | 1 | ||
| ThemeSettings | class |
Drupal\ |
core/ |
Provides a configuration API wrapper for runtime merged theme settings. | 1 | ||
| ThemeSettingsForm | class |
Drupal\ |
core/ |
Displays theme configuration for entire site and individual themes. | 1 | ||
| ThemeSettingsFormTest | class |
Drupal\ |
core/ |
Tests that theme form settings works correctly. | |||
| ThemeSettingsTest | class |
Drupal\ |
core/ |
Tests D7 theme settings source plugin. | |||
| ThemeSettingsTest | class |
Drupal\ |
core/ |
Tests theme settings functionality. | |||
| ThemeSuggestionsAlterTest | class |
Drupal\ |
core/ |
Tests theme suggestion alter hooks. | |||
| ThemeTest | class |
Drupal\ |
core/ |
Tests the theme interface functionality by enabling and switching themes, and using an administration theme. | |||
| ThemeTest | class |
Drupal\ |
core/ |
Tests low-level theme functions. | |||
| ThemeTest | class |
Drupal\ |
core/ |
Verifies that various taxonomy pages use the expected theme. | |||
| ThemeTest | class |
Drupal\ |
core/ |
Tests low-level theme functions. | |||
| ThemeTestController | class |
Drupal\ |
core/ |
Controller routines for test routes for legacy theme functions. | |||
| ThemeTestController | class |
Drupal\ |
core/ |
Controller routines for theme test routes. | |||
| ThemeTestSubscriber | class |
Drupal\ |
core/ |
Theme test subscriber for controller requests. | 2 | ||
| ThemeTokenTest | class |
Drupal\ |
core/ |
Tests the generation of 'theme_token' key in Drupal settings. | |||
| ThemeUiTest | class |
Drupal\ |
core/ |
Tests the theme UI. | |||
| ThirdPartySettingsInterface | interface |
Drupal\ |
core/ |
Interface for configuration entities to store third party information. | 4 | 5 | |
| Thread | class |
Drupal\ |
core/ |
Sort handler for ordering by thread. | |||
| ThreeColumnLayout | class |
Drupal\ |
core/ |
Configurable three column layout plugin class. | 1 | ||
| ThrobberTest | class |
Drupal\ |
core/ |
Tests the throbber. | |||
| ThumbnailDownloader | class |
Drupal\ |
core/ |
Process a queue of media items to fetch their thumbnails. | |||
| Tid | class |
Drupal\ |
core/ |
Taxonomy tid default argument. | |||
| Time | class |
Drupal\ |
core/ |
Provides a class for obtaining system time. | 1 | 2 | 2 |
| Time | class |
Drupal\ |
core/ |
Simple caching of query results for Views displays. | 1 | ||
| TimeInterface | interface |
Drupal\ |
core/ |
Defines an interface for obtaining system time. | 1 | 18 | |
| TimeInterval | class |
Drupal\ |
core/ |
A handler to provide proper displays for time intervals. | |||
| Timer | class |
Drupal\ |
core/ |
Provides helpers to use timers throughout a request. | 4 | ||
| TimerTest | class |
Drupal\ |
core/ |
Tests the Timer system. | |||
| TimeSpan | class |
Drupal\ |
core/ |
The time span data type represents durations as number of seconds. | |||
| Timestamp | class |
Drupal\ |
core/ |
The timestamp data type. | 5 | 1 | |
| TimestampAgoFormatter | class |
Drupal\ |
core/ |
Plugin implementation of the 'timestamp' formatter as time ago. | 1 | 1 | |
| TimestampAgoFormatterTest | class |
Drupal\ |
core/ |
Tests the functionality of TimestampAgoFormatter core field formatter. | |||
| TimestampDatetimeWidget | class |
Drupal\ |
core/ |
Plugin implementation of the 'datetime timestamp' widget. | |||
| TimestampFormatter | class |
Drupal\ |
core/ |
Plugin implementation of the 'timestamp' formatter. | |||
| TimestampFormatterTest | class |
Drupal\ |
core/ |
Tests the timestamp formatters. | |||
| TimestampItem | class |
Drupal\ |
core/ |
Defines the 'timestamp' entity field type. | 1 | 4 | |
| TimestampItemNormalizer | class |
Drupal\ |
core/ |
Converts values for TimestampItem to and from common formats. | 1 | 2 | |
| TimestampItemNormalizer | class |
Drupal\ |
core/ |
Converts values for TimestampItem to and from common formats for hal. | 2 |