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 |
|---|---|---|---|---|---|---|---|---|
| Statement | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Statement. | 1 | |||
| Statement | class | Drupal\mysqli\Driver\Database\mysqli | core/ |
MySQLi implementation of \Drupal\Core\Database\Query\StatementInterface. | ||||
| StatementBase | abstract class | Drupal\Core\Database\Statement | core/ |
StatementInterface base implementation. | 3 | 3 | ||
| StatementExecutionEndEvent | class | Drupal\Core\Database\Event | core/ |
Represents the end of a statement execution as an event. | 1 | 7 | ||
| StatementExecutionFailureEvent | class | Drupal\Core\Database\Event | core/ |
Represents the failure of a statement execution as an event. | 5 | |||
| StatementExecutionStartEvent | class | Drupal\Core\Database\Event | core/ |
Represents the start of a statement execution as an event. | 4 | |||
| StatementExecutionSubscriber | class | Drupal\Core\Database\EventSubscriber | core/ |
Response subscriber to statement executions. | ||||
| StatementInterface | interface | Drupal\Core\Database | core/ |
Represents a prepared statement. | 3 | 13 | ||
| StatementIteratorTrait | trait | Drupal\Core\Database | core/ |
StatementInterface iterator trait. | 1 | |||
| StatementPrefetchIterator | class | Drupal\Core\Database | core/ |
An implementation of StatementInterface that prefetches all data. | 1 | 2 | ||
| StatementTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Statement classes. | ||||
| StatementWrapperIterator | class | Drupal\Core\Database | core/ |
StatementInterface iterator implementation. | 3 | |||
| StateTest | class | Drupal\Tests\Core\State | core/ |
Tests Drupal\Core\State\State. | ||||
| StateTest | class | Drupal\Tests\workflows\Unit | core/ |
Tests Drupal\workflows\State. | ||||
| StateTransitionValidation | class | Drupal\content_moderation | core/ |
Validates whether a certain state transition is allowed. | 1 | 2 | ||
| StateTransitionValidationInterface | interface | Drupal\content_moderation | core/ |
Validates whether a certain state transition is allowed. | 1 | 3 | ||
| StateTransitionValidationTest | class | Drupal\Tests\content_moderation\Unit | core/ |
Tests Drupal\content_moderation\StateTransitionValidation. | ||||
| StateValuesCleanAdvancedTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the removal of internal Form API elements from submitted form values. | ||||
| StateValuesCleanTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests the proper removal of submitted form values. | ||||
| StaticDiscovery | class | Drupal\Component\Plugin\Discovery | core/ |
Allows plugin definitions to be manually registered. | 2 | 6 | ||
| StaticDiscoveryDecorator | class | Drupal\Component\Plugin\Discovery | core/ |
A decorator that allows manual registration of undiscoverable definitions. | 2 | |||
| StaticDiscoveryDecoratorTest | class | Drupal\Tests\Component\Plugin\Discovery | core/ |
Tests Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator. | ||||
| StaticDiscoveryDecoratorTestMockInterface | interface | Drupal\Tests\Component\Plugin\Discovery | core/ |
Interface used in the mocking process of this test. | ||||
| StaticDiscoveryTest | class | Drupal\KernelTests\Core\Plugin\Discovery | core/ |
Tests that plugins using static discovery are correctly discovered. | ||||
| StaticDiscoveryTestDecoratedClass | class | Drupal\Tests\Component\Plugin\Discovery | core/ |
A class extending StaticDiscovery for testing purposes. | ||||
| StaticFileCacheBackend | class | Drupal\Tests\Component\FileCache | core/ |
Allows to cache data based on file modification dates in a static cache. | ||||
| StaticMap | class | Drupal\migrate\Plugin\migrate\process | core/ |
Changes the source value based on a static lookup map. | 3 | 4 | ||
| StaticMapTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests the static map process plugin. | ||||
| StaticMenuLinkOverrides | class | Drupal\Core\Menu | core/ |
Defines an implementation of the menu link override using a config file. | 1 | 2 | ||
| StaticMenuLinkOverridesInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for objects which overrides menu links defined in YAML. | 1 | 7 | ||
| StaticMenuLinkOverridesTest | class | Drupal\Tests\Core\Menu | core/ |
Tests Drupal\Core\Menu\StaticMenuLinkOverrides. | ||||
| StaticReflectionClass | class | Drupal\Component\Annotation\Doctrine | core/ |
|||||
| StaticReflectionParser | class | Drupal\Component\Annotation\Doctrine | core/ |
Parses a file for namespaces/use/class declarations. | 1 | 9 | ||
| StaticReflectionParser | class | Drupal\migrate\Plugin\Discovery | core/ |
Allows getting the reflection parser for the parent class. | ||||
| StaticReflectionParserTest | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
Tests Drupal\Component\Annotation\Doctrine\StaticReflectionParser. | ||||
| StaticRouteDiscoveryBase | abstract class | Drupal\Core\Routing | core/ |
Provides functionality for a class subscribed to RoutingEvents::STATIC. | 2 | |||
| StaticTest | class | Drupal\views_test_data\Plugin\views\access | core/ |
Tests a static access plugin. | ||||
| StaticTranslation | class | Drupal\Core\StringTranslation\Translator | core/ |
String translator with a static cache for translations. | 2 | |||
| StaticTrustedCallbackHelper | class | Drupal\Core\Security | core/ |
Defines a class for performing trusted callbacks in a static context. | 2 | |||
| StatisticsLastCommentName | class | Drupal\comment\Plugin\views\sort | core/ |
Sort handler, sorts by last comment name which can be in 2 different fields. | ||||
| StatisticsLastCommentName | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to present the name of the last comment poster. | ||||
| StatisticsLastUpdated | class | Drupal\comment\Plugin\views\sort | core/ |
Sort handler for the newer of last comment / entity updated. | ||||
| StatisticsLastUpdated | class | Drupal\comment\Plugin\views\field | core/ |
Field handler to display the newer of last comment / node updated. | ||||
| StatisticsLastUpdated | class | Drupal\comment\Plugin\views\filter | core/ |
Filter handler for the newer of last comment / node updated. | ||||
| Status | class | Drupal\media\Plugin\views\filter | core/ |
Filter by published status. | ||||
| Status | class | Drupal\file\Plugin\views\filter | core/ |
Filter by file status. | ||||
| Status | class | Drupal\node\Plugin\views\filter | core/ |
Filters out unpublished content if the current user cannot view it. | ||||
| StatusCheckEvent | final class | Drupal\package_manager\Event | core/ |
Event fired to check the status of the system to use Package Manager. | 20 | |||
| StatusCheckTrait | trait | Drupal\package_manager | core/ |
Contains helper methods to run status checks on a stage. | 3 | |||
| StatusCheckTraitTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Status Check Trait. |
Pagination
- Previous page
- Page 180
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.