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 |
---|---|---|---|---|---|---|---|---|
StubForm | class | Drupal\Tests\system\Functional\Form | core/ |
Provides a stub form for testing purposes. | ||||
StubNegotiationMiddleware | class | Drupal\Tests\Core\StackMiddleware | core/ |
|||||
StubPDO | class | Drupal\Tests\Core\Database\Stub | core/ |
A stub of \PDO for testing purposes. | 9 | |||
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. | ||||
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 | |||
StubTestSuiteBase | class | Drupal\Tests\Core\Test | core/ |
Stub subclass of TestSuiteBase. | ||||
StubThemeHandler | class | Drupal\Tests\Core\Extension | core/ |
Extends the default theme handler to mock some drupal_ methods. | ||||
StubVariableTestClass | class | Drupal\Tests\Component\Utility | core/ |
No-op test class for VariableTest::testExport(). | ||||
StyleFieldsTest | class | Drupal\Tests\views\Kernel\Plugin | core/ |
Tests fields style functionality. | ||||
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. | ||||
StyleOpmlTest | class | Drupal\Tests\aggregator\Functional\Views\Plugin | core/ |
Tests the OPML feed style plugin. | ||||
StylePluginBase | abstract class | Drupal\views\Plugin\views\style | core/ |
Base class for views style plugins. | 12 | 4 | ||
StylesCombo | class | Drupal\ckeditor\Plugin\CKEditorPlugin | core/ |
Defines the "stylescombo" plugin. | ||||
StyleSerializerKernelTest | class | Drupal\Tests\hal\Kernel\rest\Views | core/ |
@coversDefaultClass \Drupal\rest\Plugin\views\style\Serializer[[api-linebreak]] @group hal @group legacy | ||||
StyleSerializerKernelTest | class | Drupal\Tests\rest\Kernel\Views | core/ |
@coversDefaultClass \Drupal\rest\Plugin\views\style\Serializer[[api-linebreak]] @group views | ||||
StyleSerializerTest | class | Drupal\Tests\rest\Functional\Views | core/ |
Tests the serializer style plugin. | ||||
StyleSerializerTest | class | Drupal\Tests\hal\Functional\rest\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 | |||
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. | ||||
SubformState | class | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 15 | |||
SubformStateInterface | interface | Drupal\Core\Form | core/ |
Stores information about the state of a subform. | 1 | 4 | ||
SubformStateTest | class | Drupal\Tests\Core\Form | core/ |
@coversDefaultClass \Drupal\Core\Form\SubformState[[api-linebreak]] | ||||
Submit | class | Drupal\Core\Render\Element | core/ |
Provides a form submit button. | 1 | |||
SubProcess | class | Drupal\migrate\Plugin\migrate\process | core/ |
Runs an array of arrays through its own process pipeline. | 1 | |||
SubProcessTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the sub_process process plugin. | ||||
Subquery | class | Drupal\views\Plugin\views\join | core/ |
Join handler for relationships that join with a subquery as the left field. | ||||
Substr | class | Drupal\migrate\Plugin\migrate\process | core/ |
Returns a substring of the input value. | 1 | |||
SubstrTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the substr plugin. | ||||
SupernovaGenerator | class | Drupal\help_test | core/ |
Implements a URL generator which always thrown an exception. | 1 | |||
SuspendQueueException | class | Drupal\Core\Queue | core/ |
Exception class to throw to indicate that a cron queue should be skipped. | 3 | |||
SvgIconBuilder | class | Drupal\Core\Layout\Icon | core/ |
Builds SVG layout icons. | 1 | 2 | ||
SynchronizableEntityTrait | trait | Drupal\Core\Entity | core/ |
Provides a trait for accessing synchronization information. | 1 | |||
SynchronizableInterface | interface | Drupal\Core\Entity | core/ |
Defines methods for an entity that supports synchronization. | 2 | 1 | ||
SysLog | class | Drupal\syslog\Logger | core/ |
Redirects logging messages to syslog. | 1 | 1 | 2 | |
SyslogTest | class | Drupal\Tests\syslog\Kernel | core/ |
Test syslog logger functionality. | ||||
SyslogTest | class | Drupal\Tests\syslog\Functional | core/ |
Tests syslog settings. | ||||
SysLogTest | class | Drupal\syslog_test\Logger | core/ |
Redirects logging messages to error_log. | 2 |
Pagination
- Previous page
- Page 113
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.