Classes, traits, and interfaces - 9.5.x - drupal
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 1523
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| TextFormat | class | Drupal\filter\Element | core/ |
Provides a text format render element. | ||||
| TextFormatElementFormTest | class | Drupal\Tests\filter\Kernel | core/ |
Tests PathElement validation and conversion functionality. | ||||
| TextFormatterTest | class | Drupal\Tests\text\Kernel | core/ |
Tests the text formatters functionality. | ||||
| TextItem | class | Drupal\text\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'text' field type. | ||||
| TextItemBase | abstract class | Drupal\text\Plugin\Field\FieldType | core/ |
Base class for 'text' configurable field types. | 3 | 3 | ||
| TextItemBaseTest | class | Drupal\Tests\text\Kernel | core/ |
Tests TextItemBase. | ||||
| TextItemSillyNormalizer | class | Drupal\field_normalization_test\Normalization | core/ |
A test TextItem normalizer to test denormalization. | 2 | |||
| TextLongItem | class | Drupal\text\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'text_long' field type. | 1 | 1 | ||
| TextProcessed | class | Drupal\text | core/ |
A computed property for processing text with a format. | ||||
| TextSummaryOrTrimmedFormatter | class | Drupal\text\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'text_summary_or_trimmed' formatter. | ||||
| TextSummaryTest | class | Drupal\Tests\text\Kernel | core/ |
Tests text_summary() with different strings and lengths. | ||||
| TextTrimmedFormatter | class | Drupal\text\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'text_trimmed' formatter. | 2 | 1 | ||
| TextWithSummaryItem | class | Drupal\text\Plugin\Field\FieldType | core/ |
Plugin implementation of the 'text_with_summary' field type. | ||||
| TextWithSummaryItemTest | class | Drupal\Tests\text\Kernel | core/ |
Tests using entity fields of the text summary field type. | ||||
| Theme | class | Drupal\Core\Updater | core/ |
Defines a class for updating themes. | ||||
| ThemeAccessCheck | class | Drupal\Core\Theme | core/ |
Provides access checking for themes for routing and theme negotiation. | 1 | 2 | ||
| ThemeAdminForm | class | Drupal\system\Form | core/ |
Form to select the administration theme. | ||||
| ThemeCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the ThemeCacheContext service, for "per theme" caching. | 2 | |||
| ThemeClass | class | Drupal\test_theme | core/ |
Represents a random class, used to test if themes can provide classes. | ||||
| ThemeController | class | Drupal\system\Controller | core/ |
Controller for theme handling. | ||||
| ThemeEarlyInitializationTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests theme system initialization early in the page request. | ||||
| ThemeEngineExtensionList | class | Drupal\Core\Extension | core/ |
Provides a list of available theme engines. | 2 | 3 | 2 | |
| ThemeEngineExtensionListTest | class | Drupal\KernelTests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ThemeEngineExtensionList[[api-linebreak]] @group Extension | ||||
| ThemeExperimentalConfirmForm | class | Drupal\system\Form | core/ |
Builds a confirmation form for enabling experimental themes. | 1 | |||
| ThemeExtensionList | class | Drupal\Core\Extension | core/ |
Provides a list of available themes. | 3 | 13 | 2 | |
| ThemeExtensionListTest | class | Drupal\KernelTests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ThemeExtensionList[[api-linebreak]] @group Extension | ||||
| ThemeExtensionListTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ThemeExtensionList[[api-linebreak]] @group Extension | ||||
| ThemeHandler | class | Drupal\Core\Extension | core/ |
Default theme handler using the config system to store installation statuses. | 1 | 2 | 2 | |
| ThemeHandlerInterface | interface | Drupal\Core\Extension | core/ |
Manages the list of available themes. | 1 | 34 | ||
| ThemeHandlerTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ThemeHandler[[api-linebreak]] @group Extension | ||||
| ThemeInfoTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests processing of theme .info.yml properties. | ||||
| ThemeInitialization | class | Drupal\Core\Theme | core/ |
Provides the theme initialization logic. | 2 | |||
| ThemeInitializationInterface | interface | Drupal\Core\Theme | core/ |
Defines an interface which contain theme initialization logic. | 1 | |||
| ThemeInstaller | class | Drupal\Core\Extension | core/ |
Manages theme installation/uninstallation. | 2 | |||
| ThemeInstallerInterface | interface | Drupal\Core\Extension | core/ |
Manages theme installation/uninstallation. | 1 | 3 | ||
| ThemeInstallerTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests installing and uninstalling of themes. | ||||
| ThemeLegacyTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests legacy theme functions. | ||||
| ThemeLocalTask | class | Drupal\system\Plugin\Derivative | core/ |
Provides dynamic tabs based on active themes. | 1 | |||
| ThemeLocalTask | class | Drupal\block\Plugin\Derivative | core/ |
Provides dynamic tabs based on active themes. | 1 | |||
| ThemeManager | class | Drupal\Core\Theme | core/ |
Provides the default implementation of a theme manager. | 2 | |||
| ThemeManagerInterface | interface | Drupal\Core\Theme | core/ |
Provides a high level access to the active theme and methods to use it. | 1 | 18 | ||
| ThemeNegotiator | class | Drupal\Core\Theme | core/ |
Provides a class which determines the active theme of the page. | 1 | 2 | ||
| ThemeNegotiatorInterface | interface | Drupal\Core\Theme | core/ |
Defines an interface for classes which determine the active theme. | 10 | 8 | ||
| ThemeNegotiatorTest | class | Drupal\Tests\Core\Theme | core/ |
@coversDefaultClass \Drupal\Core\Theme\ThemeNegotiator[[api-linebreak]] @group Theme | ||||
| ThemeRegistry | class | Drupal\Core\Utility | core/ |
Builds the run-time theme registry. | 2 | |||
| ThemeRegistryLoader | class | Drupal\Core\Template\Loader | core/ |
Loads templates based on information from the Drupal theme registry. | 1 | 2 | ||
| ThemeRegistryLoaderTest | class | Drupal\Tests\Core\Template\Loader | core/ |
@coversDefaultClass \Drupal\Core\Template\Loader\ThemeRegistryLoader[[api-linebreak]] @group Template | ||||
| ThemeRenderAndAutoescapeTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests the theme_render_and_autoescape() function. | ||||
| ThemeSettings | class | Drupal\Core\Theme | core/ |
Provides a configuration API wrapper for runtime merged theme settings. | 1 | |||
| ThemeSettings | class | Drupal\system\Plugin\migrate\destination\d7 | core/ |
Persist theme settings to the config system. | 1 |
Pagination
- Previous page
- Page 169
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.