Classes, traits, and interfaces - main - drupal

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 1529

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
SyslogHooks class Drupal\syslog\Hook core/modules/syslog/src/Hook/SyslogHooks.php Hook implementations for syslog.
SyslogTest class Drupal\Tests\syslog\Kernel core/modules/syslog/tests/src/Kernel/SyslogTest.php Test syslog logger functionality.
SyslogTest class Drupal\Tests\syslog\Functional core/modules/syslog/tests/src/Functional/SyslogTest.php Tests syslog settings.
SystemAdminMenuBlockAccessCheck class Drupal\system\Access core/modules/system/src/Access/SystemAdminMenuBlockAccessCheck.php Access check for routes implementing _access_admin_menu_block_page. 3
SystemAdminThemePreprocess class Drupal\system\Theme core/modules/system/src/Theme/SystemAdminThemePreprocess.php Hook implementations for system. 1 2
SystemBrandingBlock class Drupal\system\Plugin\Block core/modules/system/src/Plugin/Block/SystemBrandingBlock.php Provides a block to display 'Site branding' elements.
SystemBrandingOffCanvasForm class Drupal\system\Form core/modules/system/src/Form/SystemBrandingOffCanvasForm.php The settings_tray form handler for the SystemBrandingBlock.
SystemBrandingOffCanvasForm class Drupal\settings_tray\Form core/modules/settings_tray/src/Form/SystemBrandingOffCanvasForm.php The settings_tray form handler for the SystemBrandingBlock. 1
SystemBreadcrumbBlock class Drupal\system\Plugin\Block core/modules/system/src/Plugin/Block/SystemBreadcrumbBlock.php Provides a block to display the breadcrumbs.
SystemCompactLink class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/SystemCompactLink.php Provides a link to show or hide help text on administration pages.
SystemConfigFormTest class Drupal\Tests\system\Functional\Form core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php Tests the SystemConfigFormTestBase class.
SystemConfigFormTestForm class Drupal\form_test core/modules/system/tests/modules/form_test/src/SystemConfigFormTestForm.php Tests the ConfigFormBase class. 1
SystemConfigSubscriber class Drupal\system core/modules/system/src/SystemConfigSubscriber.php System Config subscriber. 2
SystemController class Drupal\system\Controller core/modules/system/src/Controller/SystemController.php Returns responses for System routes. 3
SystemFilesTest class Drupal\FunctionalTests\Routing core/tests/Drupal/FunctionalTests/Routing/SystemFilesTest.php Tests system.files route.
SystemHooks class Drupal\system\Hook core/modules/system/src/Hook/SystemHooks.php Hook implementations for system. 2
SystemInfoController class Drupal\system\Controller core/modules/system/src/Controller/SystemInfoController.php Returns responses for System Info routes.
SystemListingCrossProfileCompatibleTest class Drupal\Tests\drupal_system_listing_compatible_test\Kernel core/profiles/tests/testing/modules/drupal_system_listing_compatible_test/tests/src/Kernel/SystemListingCrossProfileCompatibleTest.php Verifies that tests in installation profile modules are found.
SystemListingTest class Drupal\Tests\system\Kernel\Common core/modules/system/tests/src/Kernel/Common/SystemListingTest.php Tests scanning system directories in drupal_system_listing().
SystemLocalTasksTest class Drupal\Tests\system\Unit\Menu core/modules/system/tests/src/Unit/Menu/SystemLocalTasksTest.php Tests existence of system local tasks.
SystemMainBlock class Drupal\system\Plugin\Block core/modules/system/src/Plugin/Block/SystemMainBlock.php Provides a 'Main page content' block.
SystemManager class Drupal\system core/modules/system/src/SystemManager.php System Manager Service. 2 2
SystemMenuBlock class Drupal\system\Plugin\Derivative core/modules/system/src/Plugin/Derivative/SystemMenuBlock.php Provides block plugin definitions for custom menus. 1
SystemMenuBlock class Drupal\system\Plugin\Block core/modules/system/src/Plugin/Block/SystemMenuBlock.php Provides a generic Menu block. 1 1
SystemMenuBlockTest class Drupal\Tests\system\Kernel\Block core/modules/system/tests/src/Kernel/Block/SystemMenuBlockTest.php Tests \Drupal\system\Plugin\Block\SystemMenuBlock.
SystemMenuBlockUiTest class Drupal\Tests\system\FunctionalJavascript\Block core/modules/system/tests/src/FunctionalJavascript/Block/SystemMenuBlockUiTest.php Test the #states on the system menu block form.
SystemMenuNavigationBlock final class Drupal\navigation\Plugin\Derivative core/modules/navigation/src/Plugin/Derivative/SystemMenuNavigationBlock.php Provides navigation block plugin definitions for custom menus. 1
SystemMenuOffCanvasForm class Drupal\system\Form core/modules/system/src/Form/SystemMenuOffCanvasForm.php The setting_tray form handler for the SystemMenuBlock.
SystemMenuOffCanvasForm class Drupal\settings_tray\Form core/modules/settings_tray/src/Form/SystemMenuOffCanvasForm.php The setting_tray form handler for the SystemMenuBlock. 1
SystemMessagesBlock class Drupal\system\Plugin\Block core/modules/system/src/Plugin/Block/SystemMessagesBlock.php Provides a block to display the messages.
SystemModuleTestHooks class Drupal\system_module_test\Hook core/modules/system/tests/modules/system_module_test/src/Hook/SystemModuleTestHooks.php Hook implementations for system_module_test.
SystemPoweredByBlock class Drupal\system\Plugin\Block core/modules/system/src/Plugin/Block/SystemPoweredByBlock.php Provides a 'Powered by Drupal' block.
SystemRequirements class Drupal\system\Install\Requirements core/modules/system/src/Install/Requirements/SystemRequirements.php Install time requirements for the system module. 2
SystemRequirementsHooks class Drupal\system\Hook core/modules/system/src/Hook/SystemRequirementsHooks.php Requirements hook implementations for system module. 3
SystemRssDeleteTest class Drupal\Tests\system\Functional\Update core/modules/system/tests/src/Functional/Update/SystemRssDeleteTest.php Tests that system.rss config is deleted.
SystemTestController class Drupal\system_test\Controller core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php Controller routines for system_test routes. 1
SystemTestHooks class Drupal\system_test\Hook core/modules/system/tests/modules/system_test/src/Hook/SystemTestHooks.php Hook implementations for system_test.
SystemThemeHooks class Drupal\system\Hook core/modules/system/src/Hook/SystemThemeHooks.php Hook implementations for system.
SystemTokensHooks class Drupal\system\Hook core/modules/system/src/Hook/SystemTokensHooks.php Hook implementations for system.
SystemUpdate7000

in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.

class Drupal\system\Plugin\migrate\process\d6 core/modules/system/src/Plugin/migrate/process/d6/SystemUpdate7000.php Rename blog and forum permissions to be consistent with other content types.
TabbingManagerTestController class Drupal\tabbingmanager_test\Controller core/modules/system/tests/modules/tabbingmanager_test/src/Controller/TabbingManagerTestController.php For testing the Tabbing Manager.
Table class Drupal\views\Plugin\views\style core/modules/views/src/Plugin/views/style/Table.php Style plugin to render each item as a row in a table. 1
Table class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Table.php Provides a render element for a table. 2 4
Table final class Drupal\Core\Database\SchemaDefinition core/lib/Drupal/Core/Database/SchemaDefinition/Table.php Describes a database table. 15
TableDragTest class Drupal\FunctionalJavascriptTests\TableDrag core/tests/Drupal/FunctionalJavascriptTests/TableDrag/TableDragTest.php Tests draggable table. 2 2
TableDragTestForm class Drupal\tabledrag_test\Form core/modules/system/tests/modules/tabledrag_test/src/Form/TableDragTestForm.php Provides a form for draggable table testing. 1 1
TabledragWarningCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php AJAX command for conveying changed tabledrag rows. 1
TableFormatter class Drupal\file\Plugin\Field\FieldFormatter core/modules/file/src/Plugin/Field/FieldFormatter/TableFormatter.php Plugin implementation of the 'file_table' formatter.
TableMappingInterface interface Drupal\Core\Entity\Sql core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php Provides a common interface for mapping field columns to SQL tables. 1 5
Tables class Drupal\Core\Entity\Query\Sql core/lib/Drupal/Core/Entity/Query/Sql/Tables.php Adds database tables and fields to the SQL entity query. 1 1

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.