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 |
|---|---|---|---|---|---|---|---|---|
| SecurityFileUploadEventSubscriber | class | Drupal\system\EventSubscriber | core/ |
The final subscriber to 'file.upload.sanitize.name'. | 1 | 2 | ||
| SecurityFileUploadEventSubscriberTest | class | Drupal\Tests\system\Unit\Event | core/ |
SecurityFileUploadEventSubscriber tests. | ||||
| Select | class | Drupal\driver_test\Driver\Database\DrivertestMysql | core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Select. | ||||
| Select | class | Drupal\driver_test\Driver\Database\DrivertestMysqlDeprecatedVersion | core/ |
MySQL test implementation of \Drupal\Core\Database\Query\Select. | ||||
| Select | class | Drupal\driver_test\Driver\Database\DrivertestPgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Select. | ||||
| Select | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Select. | 2 | 2 | ||
| Select | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Select. | 1 | 1 | ||
| Select | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Select. | 2 | 2 | ||
| Select | class | Drupal\corefake\Driver\Database\corefakeWithAllCustomClasses | core/ |
CorefakeWithAllCustomClasses implementation of \Drupal\Core\Database\Select. | ||||
| Select | class | Drupal\Core\Render\Element | core/ |
Provides a form element for a drop-down menu or scrolling selection box. | 1 | |||
| Select | in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module. |
class | Drupal\Core\Database\Driver\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Select. | 1 | ||
| Select | in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. |
class | Drupal\Core\Database\Driver\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Select. | 1 | ||
| Select | class | Drupal\Core\Database\Query | core/ |
Query builder for SELECT statements. | 5 | 8 | ||
| Select | class | Drupal\Tests\Core\Database\Stub | core/ |
|||||
| SelectCloneTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests cloning Select queries. | ||||
| SelectComplexTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder with more complex queries. | ||||
| SelectExtender | class | Drupal\Core\Database\Query | core/ |
The base extender class for Select queries. | 3 | 5 | ||
| SelectExtenderTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query extender classes. | ||||
| SelectInterface | interface | Drupal\Core\Database\Query | core/ |
Interface definition for a Select Query object. | 2 | 28 | ||
| SelectionInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Interface definition for Entity Reference Selection plugins. | 1 | 1 | ||
| SelectionPluginBase | abstract class | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Provides a base class for configurable selection handlers. | 3 | 3 | ||
| SelectionPluginManager | class | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Plugin type manager for Entity Reference Selection plugins. | 2 | |||
| SelectionPluginManagerInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Defines an interface for the entity reference selection plugin manager. | 1 | 2 | ||
| SelectionTest | class | Drupal\Tests\field\Kernel\EntityReference\Views | core/ |
Tests entity reference selection handler. | ||||
| SelectionTest | class | Drupal\Tests\field\Functional\EntityReference\Views | core/ |
Tests entity reference selection handler. | ||||
| SelectionWithAutocreateInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Interface for Selection plugins that support newly created entities. | 1 | 3 | ||
| SelectLanguageForm | class | Drupal\Core\Installer\Form | core/ |
Provides the language selection form. | ||||
| SelectLeastTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the SQL LEAST operator. | ||||
| SelectOrderedTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder. | ||||
| SelectPagerDefaultTest | class | Drupal\Tests\system\Functional\Database | core/ |
Tests the pager query select extender. | ||||
| SelectProfileForm | class | Drupal\Core\Installer\Form | core/ |
Provides the profile selection form. | 1 | |||
| SelectSubqueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder. | ||||
| SelectTableSortDefaultTest | class | Drupal\Tests\system\Functional\Database | core/ |
Tests the tablesort query extender. | ||||
| SelectTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query builder. | ||||
| SemanticVersion | class | Drupal\Composer\Util | composer/ |
Utility methods for manipulating semantic versions. | 1 | |||
| SeparatorTranslationTest | class | Drupal\Tests\datetime_range\Kernel | core/ |
Test to ensure the datetime range separator is translatable. | ||||
| Sequence | class | Drupal\Core\Config\Schema | core/ |
Defines a configuration element of type Sequence. | 1 | 1 | ||
| SequenceDataDefinition | class | Drupal\Core\Config\Schema | core/ |
A typed data definition class for defining sequences in configuration. | 2 | 1 | ||
| SerializationInterface | interface | Drupal\Component\Serialization | core/ |
Defines an interface for serialization formats. | 7 | 7 | ||
| SerializationServiceProvider | class | Drupal\serialization | core/ |
Serialization dependency injection container. | ||||
| SerializationSettingsDeletionUpdateTest | class | Drupal\Tests\serialization\Functional\Update | core/ |
Ensures that update hook is run properly for deleting obsolete serialization settings. | ||||
| SerializationTest | class | Drupal\Tests\serialization\Kernel | core/ |
Functional tests for serialization system. | ||||
| SerializationTestEncoder | class | Drupal\serialization_test | core/ |
2 | ||||
| SerializationTestNormalizer | class | Drupal\serialization_test | core/ |
2 | ||||
| Serialized | class | Drupal\views\Plugin\views\field | core/ |
Field handler to show data of serialized fields. | ||||
| SerializedColumnNormalizerTrait | trait | Drupal\serialization\Normalizer | core/ |
A trait providing methods for serialized columns. | 2 | |||
| SerializedItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'serialized_item' entity field type. | ||||
| SerializedPropertyItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'serialized_property_item_test' entity field type. | ||||
| SerializeQueryTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests serializing and unserializing a query. | ||||
| Serializer | final class | Drupal\jsonapi\Serializer | core/ |
Overrides the Symfony serializer to cordon off our incompatible normalizers. | 2 |
Pagination
- Previous page
- Page 149
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.