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 |
|---|---|---|---|---|---|---|---|---|
| SelectExtenderTest | class | Drupal\KernelTests\Core\Database | core/ |
Tests the Select query extender classes. | ||||
| SelectGetRangeTest | final class | Drupal\KernelTests\Core\Database | core/ |
Tests SelectInterface::getRange(). | ||||
| SelectInterface | interface | Drupal\Core\Database\Query | core/ |
Interface definition for a Select Query object. | 2 | 31 | ||
| SelectionInterface | interface | Drupal\Core\Entity\EntityReferenceSelection | core/ |
Interface definition for Entity Reference Selection plugins. | 1 | 3 | 2 | |
| 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 | 5 | ||
| 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. | 2 | |||
| 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 | |||
| SemVer | final class | Drupal\Composer\Plugin\RecipeUnpack | composer/ |
Helper class to manipulate semantic versioning constraints. | 1 | |||
| SemVerTest | class | Drupal\Tests\Composer\Plugin\Unpack | core/ |
Tests Drupal\Composer\Plugin\RecipeUnpack\SemVer. | ||||
| SendmailCommandValidationTransportFactory | class | Drupal\Core\Mailer\Transport | core/ |
Command validation decorator for sendmail transport factory. | ||||
| 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. | 2 | 1 | ||
| SequenceDataDefinition | class | Drupal\Core\Config\Schema | core/ |
A typed data definition class for defining sequences in configuration. | 4 | 1 | ||
| SequencesTableRemovalUpdateTest | class | Drupal\Tests\system\Functional\Update | core/ |
Tests the upgrade path for removing the sequences table. | ||||
| SequentiallyConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks constraints sequentially and shows the error from the first. | 1 | |||
| SequentiallyConstraintValidatorTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests Sequentially validation constraint with both valid and invalid values. | ||||
| SerializationHooks | class | Drupal\serialization\Hook | core/ |
Hook implementations for serialization. | ||||
| SerializationInterface | interface | Drupal\Component\Serialization | core/ |
Defines an interface for serialization formats. | 4 | 5 | ||
| SerializationServiceProvider | class | Drupal\serialization | core/ |
Serialization dependency injection container. | ||||
| SerializationTest | class | Drupal\Tests\serialization\Kernel | core/ |
Functional tests for serialization system. | ||||
| SerializationTestEncoder | class | Drupal\serialization_test | core/ |
Serialization encoder used for testing. | 2 | |||
| SerializationTestNormalizer | class | Drupal\serialization_test | core/ |
Serialization normalizer used for testing. | 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. | 1 | |||
| SerializedConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks for valid serialized data. | 1 | |||
| SerializedConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the Serialized constraint. | 1 | |||
| SerializedConstraintValidatorTest | class | Drupal\Tests\Core\Validation\Plugin\Validation\Constraint | core/ |
Tests serialize validator. | ||||
| SerializedItem | class | Drupal\entity_test\Plugin\Field\FieldType | core/ |
Defines the 'serialized_item' entity field type. | 1 | |||
| 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 | class | Drupal\serialization\Serializer | core/ |
Serializer with JSON Schema generation convenience methods. | 2 | |||
| Serializer | class | Drupal\rest\Plugin\views\style | core/ |
The style plugin for serialized output formats. | 2 | |||
| Serializer | final class | Drupal\jsonapi\Serializer | core/ |
Overrides the Symfony serializer to cordon off our incompatible normalizers. | 2 | 2 | ||
| SerializeResponseTest | class | Drupal\Tests\big_pipe\Kernel | core/ |
Tests that big_pipe responses can be serialized. | ||||
| SerializerTest | class | Drupal\Tests\jsonapi\Kernel\Serializer | core/ |
Tests the JSON:API serializer. | ||||
| SerializerTest | class | Drupal\Tests\rest\Unit\Plugin\views\style | core/ |
Tests Drupal\rest\Plugin\views\style\Serializer. | ||||
| ServerCommand | class | Drupal\Core\Command | core/ |
Runs the PHP webserver for a Drupal site for local testing/development. | ||||
| ServerEndpointController | final class | Drupal\sdc_test\Controller | core/ |
An endpoint to serve a component during tests. |
Pagination
- Previous page
- Page 173
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.