Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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

Pagination

  • First page
  • Previous page
  • …
  • Page 167
  • Page 168
  • Page 169
  • Page 170
  • Page 171
  • Page 172
  • Page 173
  • Page 174
  • Page 175
  • …
  • Next page
  • Last page

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal