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 |
|---|---|---|---|---|---|---|---|---|
| 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. | ||||
| Service | class | Drupal\new_dependency_test | core/ |
A service that can decorated itself. | 5 | |||
| ServiceClassDefault | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
A class used for testing the backend compiler passes. | 3 | |||
| ServiceClassDriverTestMysql | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
A class used for testing the backend compiler passes. | ||||
| ServiceClassMariaDb | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
A class used for testing the backend compiler passes. | ||||
| ServiceClassMysql | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
A class used for testing the backend compiler passes. | 1 | |||
| ServiceClassSqlite | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
A class used for testing the backend compiler passes. | ||||
| ServiceDeprecationTest | class | Drupal\FunctionalTests\Core\Container | core/ |
Test whether deprecation notices are triggered via \Drupal::service(). | ||||
| ServiceDestructionTest | class | Drupal\KernelTests\Core\DrupalKernel | core/ |
Tests that services are correctly destructed. | ||||
| ServiceModifierInterface | interface | Drupal\Core\DependencyInjection | core/ |
Interface that service providers can implement to modify services. | 14 | 15 | ||
| ServiceProviderBase | abstract class | Drupal\Core\DependencyInjection | core/ |
Base service provider implementation. | 9 | 9 | ||
| ServiceProviderInterface | interface | Drupal\Core\DependencyInjection | core/ |
Interface that all service providers must implement. | 15 | 15 | ||
| ServiceProviderTest | class | Drupal\KernelTests\Core\ServiceProvider | core/ |
Tests service provider registration to the DIC. | ||||
| ServiceProviderTestServiceProvider | class | Drupal\service_provider_test | core/ |
Service provider for service provider testing module. | ||||
| ServiceProviderWebTest | class | Drupal\Tests\system\Functional\ServiceProvider | core/ |
Tests service provider registration to the DIC. | ||||
| ServiceProviderWebTest | class | Drupal\Tests\system\Kernel\ServiceProvider | core/ |
Tests service provider registration to the DIC. | ||||
| ServicesDefaultsTest | class | Drupal\KernelTests\Core\DependencyInjection | core/ |
Tests services _defaults definition. | ||||
| ServicesTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests that Package Manager services are wired correctly. | ||||
| ServiceWithDependency | class | Drupal\new_dependency_test | core/ |
Service that gets the other service of the same module injected. | 6 | |||
| Session | class | Drupal\Core\StackMiddleware | core/ |
Wrap session logic around a HTTP request. | 2 | |||
| SessionAuthenticationTest | class | Drupal\Tests\system\Functional\Session | core/ |
Tests if sessions are correctly handled when a user authenticates. | ||||
| SessionCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the SessionCacheContext service, for "per session" caching. | 1 | 2 | ||
| SessionCacheContextTest | class | Drupal\Tests\Core\Cache\Context | core/ |
Tests Drupal\Core\Cache\Context\SessionCacheContext. | ||||
| SessionConfiguration | class | Drupal\Core\Session | core/ |
Defines the default session configuration generator. | 2 | 2 | ||
| SessionConfigurationInterface | interface | Drupal\Core\Session | core/ |
Defines an interface for session configuration generators. | 1 | 11 | ||
| SessionConfigurationTest | class | Drupal\Tests\Core\Session | core/ |
Tests Drupal\Core\Session\SessionConfiguration. | ||||
| SessionExistsCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the SessionExistsCacheContext service, for "session or not" caching. | 2 | |||
| SessionExistsCacheContextTest | class | Drupal\Tests\system\Functional\Cache | core/ |
Tests the 'session.exists' cache context service. | ||||
| SessionExistsCacheContextTestHooks | class | Drupal\session_exists_cache_context_test\Hook | core/ |
Hook implementations for session_exists_cache_context_test. | ||||
| SessionHandler | class | Drupal\Core\Session | core/ |
Default session handler. | 2 | |||
| SessionHttpsTest | class | Drupal\Tests\system\Functional\Session | core/ |
Ensure that when running under HTTPS two session cookies are generated. | ||||
| SessionManager | class | Drupal\Core\Session | core/ |
Manages user sessions. | 1 | 2 |
Pagination
- Previous page
- Page 176
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.