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 |
|---|---|---|---|---|---|---|---|---|
| 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. | ||||
| StatusCommand | class | Drupal\system\Command | core/ |
Prints status information about the site. | 1 | |||
| StatusCommandTest | class | Drupal\Tests\system\Kernel\Command | core/ |
Tests the 'system:status' command. | ||||
| StatusExtraTest | class | Drupal\Tests\node\Functional\Views | core/ |
Tests the node.status_extra field handler. | ||||
| StatusItem | class | Drupal\user | core/ |
Defines the 'status' entity field type. | 3 | |||
| StatusMessages | class | Drupal\Core\Render\Element | core/ |
Provides a messages element. | ||||
| StatusProfileWithoutVersionTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests the Status Report page if the installation profile has no version. | ||||
| StatusReport | class | Drupal\Core\Render\Element | core/ |
Creates status report page element. | 2 | |||
| StatusReportPage | class | Drupal\system\Element | core/ |
Creates status report page element. | 1 | |||
| StatusReportPageTest | class | Drupal\Tests\system\Kernel\Element | core/ |
Tests the status report page element. | ||||
| StatusReportTest | class | Drupal\KernelTests\Core\Render\Element | core/ |
Tests the status report element. | ||||
| StatusTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests output on the status overview page. | ||||
| StickyNode | class | Drupal\node\Plugin\Action | core/ |
Makes a node sticky. | ||||
| StorableConfigBase | abstract class | Drupal\Core\Config | core/ |
Provides a base class for configuration objects with storage support. | 2 | 4 | ||
| StorageBase | abstract class | Drupal\Core\KeyValueStore | core/ |
Provides a base class for key/value storage implementations. | 2 | |||
| StorageCacheInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for cached configuration storage. | 1 | 1 | ||
| StorageComparer | class | Drupal\Core\Config | core/ |
Defines a config storage comparer. | 17 | |||
| StorageComparerInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for comparison of configuration storage objects. | 1 | |||
| StorageComparerTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\StorageComparer. | ||||
| StorageCopyTrait | trait | Drupal\Core\Config | core/ |
Utility trait to copy configuration from one storage to another. | 4 | |||
| StorageCopyTraitTest | class | Drupal\Tests\Core\Config | core/ |
Tests Drupal\Core\Config\StorageCopyTrait. | ||||
| StorageException | class | Drupal\Core\Config | core/ |
An exception thrown in case of storage operation errors. | 1 | |||
| StorageInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for configuration storage. | 13 | 57 | ||
| StorageManagerInterface | interface | Drupal\Core\Config | core/ |
Interface for a storage manager. | 2 | 1 | ||
| StorageReplaceDataWrapper | class | Drupal\config | core/ |
Wraps a configuration storage to allow replacing specific configuration data. | 2 | |||
| StorageReplaceDataWrapperTest | class | Drupal\KernelTests\Core\Config\Storage | core/ |
Tests StorageReplaceDataWrapper operations. | ||||
| StorageTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of storage properties of views. | ||||
| StorageTest | class | Drupal\Tests\system\Functional\Form | core/ |
Tests a multistep form using form storage. | ||||
| StorageTestBase | abstract class | Drupal\KernelTests\Core\KeyValueStore | core/ |
Base class for testing key-value storages. | 3 | |||
| StorageTransformerException | class | Drupal\Core\Config | core/ |
Thrown by config storage transformers if they cannot acquire a lock. | 2 | |||
| StorageTransformEvent | class | Drupal\Core\Config | core/ |
Class StorageTransformEvent. | 2 |
Pagination
- Previous page
- Page 183
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.