Classes, traits, and interfaces - main - 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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ThemeEngineInterface | interface | Drupal\Core\Theme | core/ |
Defines an interface for a theme engine. | 2 | 2 | ||
| ThemeEngineTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests theme engine functionality. | ||||
| 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. | 2 | 27 | 2 | |
| ThemeExtensionListTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests Drupal\Core\Extension\ThemeExtensionList. | ||||
| ThemeExtensionListTest | class | Drupal\Tests\Core\Extension | core/ |
Tests Drupal\Core\Extension\ThemeExtensionList. | ||||
| ThemeHandler | class | Drupal\Core\Extension | core/ |
Default theme handler using the config system to store installation statuses. | 1 | 1 | 2 | |
| ThemeHandlerInterface | interface | Drupal\Core\Extension | core/ |
Manages the list of available themes. | 1 | 60 | ||
| ThemeHandlerTest | class | Drupal\Tests\Core\Extension | core/ |
Tests Drupal\Core\Extension\ThemeHandler. | ||||
| ThemeHookCollectorPass | class | Drupal\Core\Hook | core/ |
Collects and registers hook implementations. | 2 | |||
| ThemeHookCollectorPassTest | class | Drupal\KernelTests\Core\Hook | core/ |
Tests Drupal\Core\Hook\ThemeHookCollectorPass. | ||||
| ThemeHooks | class | Drupal\admin\Hook | core/ |
Provides theme related hook implementations. | ||||
| ThemeHooks | class | Drupal\default_admin\Hook | core/ |
Provides theme related hook implementations. | ||||
| ThemeHookTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests low-level theme functions. | ||||
| 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 | 4 | ||
| ThemeInstallController | class | Drupal\nightwatch_theme_install_utility\Controller | core/ |
Provides an easier way for Nightwatch tests to install themes. | ||||
| ThemeInstaller | class | Drupal\Core\Extension | core/ |
Manages theme installation/uninstallation. | 2 | |||
| ThemeInstallerInterface | interface | Drupal\Core\Extension | core/ |
Manages theme installation/uninstallation. | 1 | 13 | ||
| ThemeInstallerTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests installing and uninstalling of themes. | ||||
| ThemeLocalTask | class | Drupal\block\Plugin\Derivative | core/ |
Provides dynamic tabs based on active themes. | 1 | |||
| ThemeLocalTask | class | Drupal\system\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 | 44 | ||
| 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. | 11 | 9 | ||
| ThemeNegotiatorTest | class | Drupal\Tests\Core\Theme | core/ |
Tests Drupal\Core\Theme\ThemeNegotiator. | ||||
| ThemePageTestHooks | class | Drupal\theme_page_test\Hook | core/ |
Hook implementations for theme_page_test. | ||||
| ThemePreprocess | class | Drupal\Core\Theme | core/ |
Preprocess for common/core theme templates. | 2 | 2 | ||
| ThemeProceduralTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests low-level theme functions. | ||||
| ThemeRegionTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests theme region listing. | ||||
| ThemeRegionTestThemeHooks | class | Drupal\theme_region_test\Hook | core/ |
Hook implementations for theme_region_test. | ||||
| 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/ |
Tests Drupal\Core\Template\Loader\ThemeRegistryLoader. | ||||
| ThemeSettings | class | Drupal\Core\Theme | core/ |
Provides a configuration API wrapper for runtime merged theme settings. | 1 | |||
| ThemeSettings | in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\system\Plugin\migrate\destination\d7 | core/ |
Persist theme settings to the config system. | 1 | ||
| ThemeSettings | class | Drupal\system\Plugin\migrate\source\d7 | core/ |
Drupal 7 theme settings source from database. | 1 | |||
| ThemeSettingsForm | class | Drupal\system\Form | core/ |
Displays theme configuration for entire site and individual themes. | 1 | |||
| ThemeSettingsFormTest | class | Drupal\Tests\system\FunctionalJavascript | core/ |
Tests that theme form settings works correctly. | ||||
| ThemeSettingsProvider | class | Drupal\Core\Extension | core/ |
Default implementation of the theme settings provider service. | 19 | |||
| ThemeSettingsTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests theme settings functionality. | ||||
| ThemeSettingsTest | class | Drupal\Tests\system\Kernel\Plugin\migrate\source\d7 | core/ |
Tests D7 theme settings source plugin. | ||||
| ThemeStream | final class | Drupal\Core\StreamWrapper | core/ |
Defines the read-only theme:// stream wrapper for theme files. | 1 | 2 | ||
| ThemeSuggestionHooks | class | Drupal\admin\Hook | core/ |
Provides theme suggestion hook implementations. | ||||
| ThemeSuggestionHooks | class | Drupal\default_admin\Hook | core/ |
Provides theme suggestion hook implementations. | ||||
| ThemeSuggestionsAlterTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Tests theme suggestion alter hooks. | ||||
| ThemeSuggestionsTestHooks | class | Drupal\theme_suggestions_test\Hook | core/ |
Hook implementations for theme_suggestions_test. | ||||
| ThemeTest | class | Drupal\Tests\system\Kernel\Theme | core/ |
Tests low-level theme functions. |
Pagination
- Previous page
- Page 198
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.