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 |
|---|---|---|---|---|---|---|---|---|
| StatisticsReportsTest | class | Drupal\Tests\statistics\Functional | core/ |
Tests display of statistics report blocks. | ||||
| StatisticsSettingsForm | class | Drupal\statistics | core/ |
Configure statistics settings for this site. | 1 | |||
| StatisticsStorageInterface | interface | Drupal\statistics | core/ |
Provides an interface defining Statistics Storage. | 1 | 1 | ||
| StatisticsTestBase | abstract class | Drupal\Tests\statistics\Functional | core/ |
Defines a base class for testing the Statistics module. | 2 | |||
| StatisticsTokenReplaceTest | class | Drupal\Tests\statistics\Functional | core/ |
Tests statistics token replacement. | ||||
| StatisticsViewsResult | class | Drupal\statistics | core/ |
Value object for passing statistic results. | 1 | |||
| StatisticsViewsResultTest | class | Drupal\Tests\statistics\Unit | core/ |
@coversDefaultClass \Drupal\statistics\StatisticsViewsResult[[api-linebreak]] @group statistics | ||||
| 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/ |
Filter by published status. | ||||
| 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. | 2 | |||
| StatusReport | class | Drupal\Core\Render\Element | core/ |
Creates status report page element. | 1 | |||
| StatusReportPage | class | Drupal\system\Element | core/ |
Creates status report page 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 | 2 | ||
| 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 | |||
| StorageComparer | class | Drupal\Core\Config | core/ |
Defines a config storage comparer. | 14 | |||
| StorageComparerInterface | interface | Drupal\Core\Config | core/ |
Defines an interface for comparison of configuration storage objects. | 1 | |||
| StorageComparerTest | class | Drupal\Tests\Core\Config | core/ |
@coversDefaultClass \Drupal\Core\Config\StorageComparer[[api-linebreak]] @group Config | ||||
| StorageCopyTrait | trait | Drupal\Core\Config | core/ |
Utility trait to copy configuration from one storage to another. | 3 | |||
| StorageCopyTraitTest | class | Drupal\Tests\Core\Config | core/ |
@coversDefaultClass \Drupal\Core\Config\StorageCopyTrait[[api-linebreak]] @group Config | ||||
| 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. | 8 | 37 | ||
| 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\system\Functional\Form | core/ |
Tests a multistep form using form storage. | ||||
| StorageTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the UI of storage properties of views. | ||||
| 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 | |||
| StreamCapturer | class | Drupal\Tests | core/ |
Captures output to a stream and stores it for retrieval. | 2 | |||
| StreamWrapperInterface | interface | Drupal\Core\StreamWrapper | core/ |
Defines a Drupal stream wrapper extension. | 2 | 13 | ||
| StreamWrapperManager | class | Drupal\Core\StreamWrapper | core/ |
Provides a StreamWrapper manager. | 21 | 2 | ||
| StreamWrapperManagerInterface | interface | Drupal\Core\StreamWrapper | core/ |
Provides a StreamWrapper manager. | 1 | 18 | ||
| StreamWrapperManagerTest | class | Drupal\KernelTests\Core\StreamWrapper | core/ |
@coversDefaultClass \Drupal\Core\StreamWrapper\StreamWrapperManager[[api-linebreak]] @group File | ||||
| StreamWrapperTest | class | Drupal\KernelTests\Core\File | core/ |
Tests stream wrapper functions. | ||||
| StringArgument | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for string. | 2 | 2 | ||
| StringBase | abstract class | Drupal\locale | core/ |
Defines the locale string base class. | 2 | |||
| StringBaseTest | class | Drupal\Tests\locale\Unit | core/ |
@coversDefaultClass \Drupal\locale\StringBase[[api-linebreak]] @group locale | ||||
| StringData | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The string data type. | 6 | 10 | 1 | |
| StringDatabaseStorage | class | Drupal\locale | core/ |
Defines a class to store localized strings in the database. | 2 | |||
| StringFieldRdfaTest | class | Drupal\Tests\rdf\Kernel\Field | core/ |
Tests RDFa output by text field formatters. | ||||
| StringFieldTest | class | Drupal\Tests\field\Functional\String | core/ |
Tests the creation of string fields. | 1 | 1 | ||
| StringFilter | class | Drupal\views\Plugin\views\filter | core/ |
Basic textfield filter to handle string filtering commands. | 1 | |||
| StringFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'string' formatter. | 2 | 1 |
Pagination
- Previous page
- Page 156
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.