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 |
|---|---|---|---|---|---|---|---|---|
| StubNegotiationMiddleware | class | Drupal\Tests\Core\StackMiddleware | core/ |
Stub class for testing NegotiationMiddleware. | ||||
| StubPagerPluginBase | class | Drupal\Tests\views\Unit\Plugin\pager | core/ |
A stub pager plugin for testing purposes. | ||||
| StubPathMatcher | class | Drupal\Tests\system\Kernel\Block | core/ |
A class extending PatchMatcher for testing purposes. | ||||
| StubPDO | class | Drupal\Tests\Core\Database\Stub | core/ |
A stub of \PDO for testing purposes. | 5 | |||
| StubPluginBase | class | Drupal\Tests\Component\Plugin | core/ |
A class extending PluginBase for testing purposes. | ||||
| StubPluginManagerBase | class | Drupal\Tests\Component\Plugin | core/ |
A class extending PluginManagerBase for testing purposes. | ||||
| StubPluginManagerBaseWithMapper | final class | Drupal\Tests\Component\Plugin | core/ |
Stubs \Drupal\Component\Plugin\PluginManagerBase to take a MapperInterface. | ||||
| StubReflectionFactory | class | Drupal\Tests\Component\Plugin\Factory | core/ |
Override ReflectionFactory because ::createInstance() calls a static method. | ||||
| StubRequestHandlerResourcePlugin | class | Drupal\Tests\rest\Kernel | core/ |
Stub class where we can prophesize methods. | ||||
| StubRevisionableEntity | class | Drupal\Tests\Core\Entity | core/ |
A stub revisionable entity for testing purposes. | 1 | |||
| StubSchema | class | Drupal\Tests\Core\Database\Stub | core/ |
A stub of the abstract Schema class for testing purposes. | 1 | 2 | ||
| StubSourceGeneratorPlugin | class | Drupal\Tests\migrate\Unit | core/ |
Defines a stubbed source plugin with a generator as iterator. | ||||
| StubSourcePlugin | class | Drupal\Tests\migrate\Unit | core/ |
Stubbed source plugin for testing base class implementations. | 1 | |||
| StubSqlBase | class | Drupal\Tests\views\Unit\Plugin\pager | core/ |
A stub pager plugin for testing purposes. | ||||
| StubTestTrait | trait | Drupal\migrate_drupal\Tests | core/ |
Provides common functionality for testing stubbing. | 8 | |||
| StubTestTrait | trait | Drupal\Tests\migrate | core/ |
Provides common functionality for testing stubbing. | 1 | |||
| StubThemeHandler | class | Drupal\Tests\Core\Extension | core/ |
Extends the default theme handler to mock some drupal_ methods. | ||||
| StubTrait | trait | Drupal\Component\Discovery | core/ |
Defines an empty trait that can stand in for a missing trait. | ||||
| StubUpsert | class | Drupal\Tests\Core\Database\Stub | core/ |
A stub of core Upsert for testing purposes. | ||||
| StubVariableTestClass | class | Drupal\Tests\Component\Utility | core/ |
No-op test class for VariableTest::testExport(). | ||||
| StubVariantBase | class | Drupal\Tests\Core\Display | core/ |
Provides a basic class extending VariantBase. | ||||
| Style | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Style plugin configuration. | 3 | 1 | ||
| StyleFieldsTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests fields style functionality. | ||||
| StyleGridResponsiveTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the grid_responsive style plugin. | ||||
| StyleGridTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the grid style plugin. | ||||
| StyleHtmlListTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the HTML list style plugin. | ||||
| StyleMappingTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests mapping style functionality. | ||||
| StylePluginBase | abstract class | Drupal\views\Plugin\views\style | core/ |
Base class for views style plugins. | 13 | 6 | 1 | |
| StylePluginTest | class | Drupal\Tests\ckeditor5\Unit | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style. | ||||
| StyleSensibleElementConstraint | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Styles can only be specified for HTML5 tags and extra classes. | ||||
| StyleSensibleElementConstraintValidator | class | Drupal\ckeditor5\Plugin\Validation\Constraint | core/ |
Styles can only be specified for HTML5 tags and extra classes. | ||||
| StyleSerializerEntityTest | class | Drupal\Tests\rest\Functional\Views | core/ |
Tests the serializer style plugin. | ||||
| StyleSerializerKernelTest | class | Drupal\Tests\rest\Kernel\Views | core/ |
Tests Drupal\rest\Plugin\views\style\Serializer. | ||||
| StyleSerializerTest | class | Drupal\Tests\rest\Functional\Views | core/ |
Tests the serializer style plugin. | ||||
| StyleSummaryTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the summary style plugin. | ||||
| StyleTableTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the table style views plugin. | ||||
| StyleTableTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of views when using the table style. | ||||
| StyleTableUnitTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests the table style plugin. | ||||
| StyleTemplateTest | class | Drupal\views_test_data\Plugin\views\style | core/ |
Provides a general test style template plugin. | ||||
| StyleTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests general style functionality. | ||||
| StyleTest | class | Drupal\views_test_data\Plugin\views\style | core/ |
Provides a general test style plugin. | 1 | |||
| StyleTest | class | Drupal\Tests\ckeditor5\FunctionalJavascript | core/ |
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style. | ||||
| StyleTestBase | abstract class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests some general style plugin related functionality. | 2 | |||
| StyleUITest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of style plugins. | ||||
| StyleUnformattedTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests unformatted style functionality. | ||||
| SubDirAttribute | final class | Drupal\Tests\Component\Annotation\Doctrine\Fixtures\Attribute\SubDir | core/ |
#[\Attribute] | ||||
| SubformState | class | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 17 | |||
| SubformStateInterface | interface | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 1 | 6 | ||
| SubformStateTest | class | Drupal\Tests\Core\Form | core/ |
Tests Drupal\Core\Form\SubformState. | ||||
| Submit | class | Drupal\Core\Render\Element | core/ |
Provides a form submit button. | 1 |
Pagination
- Previous page
- Page 185
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.