Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
ServerRequestCreator | final class | Nyholm\Psr7Server | vendor/ |
@author Tobias Nyholm <tobias.nyholm@gmail.com> @author Martijn van der Ven <martijn@vanderven.se> | 1 | |||
ServerRequestCreatorInterface | interface | Nyholm\Psr7Server | vendor/ |
@author Tobias Nyholm <tobias.nyholm@gmail.com> @author Martijn van der Ven <martijn@vanderven.se> | 1 | |||
ServerRequestFactoryInterface | interface | Psr\Http\Message | vendor/ |
3 | 12 | |||
ServerRequestInterface | interface | Psr\Http\Message | vendor/ |
Representation of an incoming, server-side HTTP request. | 1 | 14 | ||
Service | final class | OpenTelemetry\SDK\Resource\Detectors | vendor/ |
|||||
ServiceCircularReferenceException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
This exception is thrown when a circular reference is detected. | 10 | |||
ServiceClosureArgument | class | Symfony\Component\DependencyInjection\Argument | vendor/ |
Represents a service wrapped in a memoizing closure. | 16 | |||
ServiceCollectionInterface | interface | Symfony\Contracts\Service | vendor/ |
A ServiceProviderInterface that is also countable and iterable. | 1 | 1 | ||
ServiceConfigurationError | final class | Nevay\SPI | vendor/ |
|||||
ServiceConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
ServiceDescriptorProto | class | Google\Protobuf\Internal | vendor/ |
Describes a service. | ||||
ServiceFactory | class | WebDriver | vendor/ |
WebDriver\ServiceFactory class | 1 | |||
ServiceLoader | final class | Nevay\SPI | vendor/ |
Service provider loading facility. | 2 | |||
ServiceLoaderIterator | final class | Nevay\SPI | vendor/ |
@template-covariant S of object service type @implements Iterator<class-string, S> | ||||
ServiceLocator | class | Symfony\Component\DependencyInjection | vendor/ |
@author Robin Chalas <robin.chalas@gmail.com> @author Nicolas Grekas <p@tchwork.com> | 1 | 4 | ||
ServiceLocator | class | Symfony\Component\DependencyInjection\Argument | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | 3 | |||
ServiceLocatorArgument | class | Symfony\Component\DependencyInjection\Argument | vendor/ |
Represents a closure acting as a service locator. | 13 | |||
ServiceLocatorTagPass | final class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Applies the "container.service_locator" tag by wrapping references into ServiceClosureArgument instances. | 6 | |||
ServiceLocatorTestCase | abstract class | Symfony\Contracts\Service\Test | vendor/ |
|||||
ServiceLocatorTrait | trait | Symfony\Contracts\Service | vendor/ |
A trait to help implement ServiceProviderInterface. | 2 | |||
ServiceMap | class | mglaman\PHPStanDrupal\Drupal | vendor/ |
8 | ||||
ServiceMethodsSubscriberTrait | trait | Symfony\Contracts\Service | vendor/ |
Implementation of ServiceSubscriberInterface that determines subscribed services from methods that have the #[SubscribedService] attribute. | 1 | |||
ServiceModifierInterface | interface | Drupal\Core\DependencyInjection | core/ |
Interface that service providers can implement to modify services. | 6 | 7 | ||
ServiceNotFoundException | class | Symfony\Component\DependencyInjection\Exception | vendor/ |
This exception is thrown when a non-existent service is requested. | 13 | |||
ServiceOptions | class | Google\Protobuf\Internal | vendor/ |
Generated from protobuf message <code>google.protobuf.ServiceOptions</code> | ||||
ServiceProviderBase | abstract class | Drupal\Core\DependencyInjection | core/ |
Base service provider implementation. | 4 | 4 | ||
ServiceProviderInterface | interface | Symfony\Contracts\Service | vendor/ |
A ServiceProviderInterface exposes the identifiers and the types of services provided by a container. | 1 | 4 | ||
ServiceProviderInterface | interface | Drupal\Core\DependencyInjection | core/ |
Interface that all service providers must implement. | 12 | 12 | ||
ServiceProviderRequirement | interface | Nevay\SPI | vendor/ |
Specifies requirements for a service provider. | 2 | 1 | ||
ServiceProviderRequirementRuntimeValidated | interface | Nevay\SPI | vendor/ |
Specifies requirements for a service provider. | 1 | 2 | ||
ServiceReferenceGraph | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
This is a directed graph of your services. | ||||
ServiceReferenceGraphEdge | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Represents an edge in your service graph. | ||||
ServiceReferenceGraphNode | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Represents a node in your service graph. | 1 | |||
ServicesConfigurator | class | Symfony\Component\DependencyInjection\Loader\Configurator | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
ServicesResetter | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Resets provided services. | ||||
ServiceSubscriberInterface | interface | Symfony\Contracts\Service | vendor/ |
A ServiceSubscriber exposes its dependencies via the static {@link getSubscribedServices} method. | 4 | |||
ServiceSubscriberTrait | since symfony/contracts v3.5, use ServiceMethodsSubscriberTrait instead |
trait | Symfony\Contracts\Service | vendor/ |
Implementation of ServiceSubscriberInterface that determines subscribed services from methods that have the #[SubscribedService] attribute. | |||
ServiceUnavailableHttpException | class | Symfony\Component\HttpKernel\Exception | vendor/ |
@author Ben Ramsey <ben@benramsey.com> | 1 | 2 | ||
ServiceValueResolver | final class | Symfony\Component\HttpKernel\Controller\ArgumentResolver | vendor/ |
Yields a service keyed by _controller and argument name. | ||||
Session | class | Drupal\Core\StackMiddleware | core/ |
Wrap session logic around a HTTP request. | ||||
Session | class | WebDriver\Storage | vendor/ |
WebDriver\Storage\Session class | ||||
Session | class | Symfony\Component\HttpFoundation\Session | vendor/ |
@author Fabien Potencier <fabien@symfony.com> @author Drak <drak@zikula.org> | 5 | |||
Session | class | WebDriver | vendor/ |
WebDriver\Session class | 1 | |||
Session | class | Behat\Mink | vendor/ |
Mink session. | 8 | |||
SessionBagInterface | interface | Symfony\Component\HttpFoundation\Session | vendor/ |
Session Bag store. | 4 | 7 | ||
SessionBagProxy | final class | Symfony\Component\HttpFoundation\Session | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
SessionCacheContext | class | Drupal\Core\Cache\Context | core/ |
Defines the SessionCacheContext service, for "per session" caching. | ||||
SessionConfiguration | class | Drupal\Core\Session | core/ |
Defines the default session configuration generator. | ||||
SessionConfigurationInterface | interface | Drupal\Core\Session | core/ |
Defines an interface for session configuration generators. | 1 | 6 | ||
SessionCookieJar | class | GuzzleHttp\Cookie | vendor/ |
Persists cookies in the client session |