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 |
|---|---|---|---|---|---|---|---|---|
| SessionManagerDestroyNoCliCheckTest | class | Drupal\KernelTests\Core\Session | core/ |
Tests starting and destroying a session from the CLI. | ||||
| SessionManagerInterface | interface | Drupal\Core\Session | core/ |
Defines the session manager interface. | 1 | |||
| SessionManagerTest | class | Drupal\Tests\Core\Session | core/ |
Tests Drupal\Core\Session\SessionManager. | ||||
| SessionTest | class | Drupal\FunctionalJavascriptTests\Core\Session | core/ |
Tests that sessions don't expire. | ||||
| SessionTest | class | Drupal\Tests\system\Functional\Session | core/ |
Drupal session handling tests. | ||||
| SessionTestController | class | Drupal\session_test\Controller | core/ |
Controller providing page callbacks for session tests. | ||||
| SessionTestForm | class | Drupal\session_test\Form | core/ |
Form controller for the test config edit forms. | 1 | |||
| SessionTestHooks | class | Drupal\session_test\Hook | core/ |
Hook implementations for session_test. | ||||
| SessionTestSubscriber | class | Drupal\session_test\EventSubscriber | core/ |
Defines a test session subscriber that checks whether the session is empty. | 2 | |||
| SessionTestTrait | trait | Drupal\Tests | core/ |
Provides methods to generate and get session name in tests. | 1 | |||
| SessionWorkspaceNegotiator | class | Drupal\workspaces\Negotiator | core/ |
Defines the session workspace negotiator. | 1 | 2 | ||
| SetBrowserUrl | class | Drupal\views\Ajax | core/ |
AJAX command that sets the browser URL without refreshing the page. | 1 | |||
| SetCustomize | class | Drupal\shortcut\Form | core/ |
Builds the shortcut set customize form. | 1 | |||
| SetDialogOptionCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command that sets jQuery UI dialog properties. | 1 | 1 | ||
| SetDialogTitleCommand | class | Drupal\Core\Ajax | core/ |
Defines an AJAX command that sets jQuery UI dialog properties. | 1 | |||
| SetFormCommand | class | Drupal\views_ui\Ajax | core/ |
Provides an AJAX command for setting a form submit URL in modal forms. | 1 | |||
| SetInlineBlockDependency | class | Drupal\layout_builder\EventSubscriber | core/ |
An event subscriber that returns an access dependency for inline blocks. | 1 | |||
| SetProperties | final class | Drupal\Core\Config\Action\Plugin\ConfigAction | core/ |
@internal This API is experimental. | ||||
| SetSubtreesCommand | class | Drupal\toolbar\Ajax | core/ |
Defines an AJAX command that sets the toolbar subtrees. | 1 | |||
| SettableDiscoveryExtensionListTrait | trait | Drupal\Tests\Core\Extension | core/ |
Trait that allows extension discovery to be set. | ||||
| SetterInjection | class | Drupal\new_dependency_test | core/ |
Generic service which uses setter injection. | 2 | |||
| Settings | final class | Drupal\admin | core/ |
Service to handle overridden user settings. | 3 | |||
| Settings | final class | Drupal\default_admin | core/ |
Service to handle overridden user settings. | 3 | |||
| Settings | final class | Drupal\Core\Site | core/ |
Read only settings that are initialized with the class. | 159 | 2 | ||
| SettingsAnnotation | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
| SettingsCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for adjusting Drupal's JavaScript settings. | 3 | |||
| SettingsConfigValidationTest | class | Drupal\Tests\image\Kernel | core/ |
Tests Settings Config Validation. | ||||
| SettingsEditor | final class | Drupal\Core\Site | core/ |
Generates settings.php files for Drupal installations. | 3 | |||
| SettingsForm | class | Drupal\media_library\Form | core/ |
Defines a form for configuring the Media Library module. | 1 | 1 | ||
| SettingsForm | final class | Drupal\navigation\Form | core/ |
Configure Navigation settings for this site. | 1 | |||
| SettingsFormTest | class | Drupal\Tests\media_library\Functional | core/ |
Tests the Media Library settings form. | ||||
| SettingsFormTest | class | Drupal\Tests\jsonapi\Functional | core/ |
Tests Settings Form. | ||||
| SettingsRewriteTest | class | Drupal\KernelTests\Core\Site | core/ |
Tests the SettingsEditor::rewrite() function. | ||||
| SettingsTest | class | Drupal\Tests\Core\Site | core/ |
Tests Drupal\Core\Site\Settings. | ||||
| SettingsTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests all ui related settings under admin/structure/views/settings. | ||||
| SettingsTest | class | Drupal\Tests\migrate_drupal_ui\FunctionalJavascript | core/ |
Tests migrate upgrade credential form with settings in settings.php. | ||||
| SettingsTrayBlockFormTest | class | Drupal\Tests\settings_tray\FunctionalJavascript | core/ |
Testing opening and saving block forms in the off-canvas dialog. | ||||
| SettingsTrayFormAnnotationIsClassBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Block that explicitly provides a "settings_tray" form class. | 1 | |||
| SettingsTrayFormAnnotationIsClassBlockForm | class | Drupal\settings_tray_test\Form | core/ |
1 | ||||
| SettingsTrayFormAnnotationIsFalseBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Block that explicitly provides no "settings_tray" form, thus opting out. | ||||
| SettingsTrayFormAnnotationNoneBlock | class | Drupal\settings_tray_test\Plugin\Block | core/ |
Block that does nothing explicit for Settings Tray. | 1 | |||
| SettingsTrayHooks | class | Drupal\settings_tray\Hook | core/ |
Hook implementations for settings_tray. | ||||
| SettingsTrayTest | class | Drupal\Tests\settings_tray\Functional | core/ |
Tests opening and saving block forms in the off-canvas dialog. | ||||
| SettingsTrayTestBase | abstract class | Drupal\Tests\settings_tray\FunctionalJavascript | core/ |
Base class for Settings Tray tests. | 3 | |||
| SettingsTrayTestCssHooks | class | Drupal\settings_tray_test_css\Hook | core/ |
Hook implementations for settings_tray_test_css. | ||||
| SettingsTrayThemeHooks | class | Drupal\settings_tray\Hook | core/ |
Hook implementations for settings_tray. | ||||
| SettingSummariesContentTypeTest | class | Drupal\Tests\node\FunctionalJavascript | core/ |
Tests the JavaScript updating of summaries on content type form. | ||||
| SettingsValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that Drupal's settings are valid for Package Manager. | 1 | |||
| SettingsValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Settings Validator. | ||||
| ShapeItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'shape' field type. | 1 |
Pagination
- Previous page
- Page 177
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.