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
ContainerControllerResolver class Symfony\Component\HttpKernel\Controller vendor/symfony/http-kernel/Controller/ContainerControllerResolver.php A controller resolver searching for a controller in a psr-11 container when using the "service::method" notation.
ContainerDerivativeDiscoveryDecorator class Drupal\Core\Plugin\Discovery core/lib/Drupal/Core/Plugin/Discovery/ContainerDerivativeDiscoveryDecorator.php Injects dependencies into derivers if they use ContainerDeriverInterface. 13
ContainerDeriverInterface interface Drupal\Core\Plugin\Discovery core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php Creates additional plugin definitions. 45 45
ContainerDynamicReturnTypeExtension class mglaman\PHPStanDrupal\Type vendor/mglaman/phpstan-drupal/src/Type/ContainerDynamicReturnTypeExtension.php
ContainerExceptionInterface interface Psr\Container vendor/psr/container/src/ContainerExceptionInterface.php Base interface representing a generic exception in a container. 2 4
ContainerFactory class Drupal\Core\Plugin\Factory core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php Plugin factory which passes a container to a create method. 1 11
ContainerFactoryPluginInterface interface Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php Defines an interface for pulling plugin dependencies from the container. 134 135
ContainerInjectionInterface interface Drupal\Core\DependencyInjection core/lib/Drupal/Core/DependencyInjection/ContainerInjectionInterface.php Defines a common interface for dependency container injection. 98 98
ContainerInterface interface Drupal\Component\DependencyInjection core/lib/Drupal/Component/DependencyInjection/ContainerInterface.php The interface for Drupal service container classes. 2 1
ContainerInterface interface Symfony\Component\DependencyInjection vendor/symfony/dependency-injection/ContainerInterface.php ContainerInterface is the interface implemented by service container classes. 3 630
ContainerInterface interface Psr\Container vendor/psr/container/src/ContainerInterface.php Describes the interface of a container that exposes methods to read its entries. 3 28
ContainerLoader class Symfony\Component\Routing\Loader vendor/symfony/routing/Loader/ContainerLoader.php A route loader that executes a service from a PSR-11 container to load the routes.
ContainerNotInitializedException class Drupal\Core\DependencyInjection core/lib/Drupal/Core/DependencyInjection/ContainerNotInitializedException.php Exception, thrown when a method is called on a non-initialized container. 2
ContainerParametersResource class Symfony\Component\DependencyInjection\Config vendor/symfony/dependency-injection/Config/ContainerParametersResource.php Tracks container parameters.
ContainerParametersResourceChecker class Symfony\Component\DependencyInjection\Config vendor/symfony/dependency-injection/Config/ContainerParametersResourceChecker.php @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
ContainerRuntimeLoader class Twig\RuntimeLoader vendor/twig/twig/src/RuntimeLoader/ContainerRuntimeLoader.php Lazily loads Twig runtime implementations from a PSR-11 container.
ContainsElement class PharIo\Manifest vendor/phar-io/manifest/src/xml/ContainsElement.php
ContentDispositionFilenameParser final class Drupal\file\Upload core/modules/file/src/Upload/ContentDispositionFilenameParser.php Parses the content-disposition header to extract the client filename. 2
ContentEncoderInterface interface Symfony\Component\Mime\Encoder vendor/symfony/mime/Encoder/ContentEncoderInterface.php @author Chris Corbyn 3 1
ContentEntity class Drupal\migrate_drupal\Plugin\migrate\source core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntity.php Source plugin to get content entities from the current version of Drupal.
ContentEntityBase abstract class Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityBase.php Implements Entity Field API specific enhancements to the Entity class. 10 8
ContentEntityConfirmFormBase abstract class Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php Provides a generic base class for an entity-based confirmation form. 2 1
ContentEntityDeleteForm class Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php Provides a generic base class for a content entity deletion form. 8 11
ContentEntityDenormalizer final class Drupal\jsonapi\Normalizer core/modules/jsonapi/src/Normalizer/ContentEntityDenormalizer.php Converts a JSON:API array structure into a Drupal entity object. 2
ContentEntityDeriver class Drupal\migrate_drupal\Plugin\migrate\source core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntityDeriver.php Deriver for content entity source plugins.
ContentEntityForm class Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityForm.php Entity form variant for content entity types. 13 12
ContentEntityFormInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php Defines a common interface for content entity form classes. 1 4
ContentEntityInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityInterface.php Defines a common interface for all content entity objects. 14 55 1
ContentEntityNormalizer class Drupal\serialization\Normalizer core/modules/serialization/src/Normalizer/ContentEntityNormalizer.php Normalizes/denormalizes Drupal content entities into an array structure. 2
ContentEntityNullStorage class Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php Defines a null entity storage. 2
ContentEntityQueryType final class mglaman\PHPStanDrupal\Type\EntityQuery vendor/mglaman/phpstan-drupal/src/Type/EntityQuery/ContentEntityQueryType.php Type used to represent an entity query instance for content entity query. 2
ContentEntityStorageBase abstract class Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php Base class for content entity storage handlers. 2 1
ContentEntityStorageInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityStorageInterface.php A storage that supports content entity types. 8 15
ContentEntityStorageType final class mglaman\PHPStanDrupal\Type\EntityStorage vendor/mglaman/phpstan-drupal/src/Type/EntityStorage/ContentEntityStorageType.php 1
ContentEntityType class Drupal\Core\Entity\Attribute core/lib/Drupal/Core/Entity/Attribute/ContentEntityType.php Defines a content entity type for plugin discovery. 13
ContentEntityType class Drupal\Core\Entity\Annotation core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php Defines a content entity type annotation object.
ContentEntityType class Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityType.php Provides an implementation of a content entity type and its metadata. 1
ContentEntityTypeInterface interface Drupal\Core\Entity core/lib/Drupal/Core/Entity/ContentEntityTypeInterface.php Provides an interface for a content entity type and its metadata. 1 17
ContentLanguageSettings class Drupal\language\Entity core/modules/language/src/Entity/ContentLanguageSettings.php Defines the ContentLanguageSettings entity. 10
ContentLanguageSettingsException class Drupal\language core/modules/language/src/ContentLanguageSettingsException.php Exception thrown by ContentLanguageSettings when target bundle is not set. 1
ContentLanguageSettingsForm class Drupal\language\Form core/modules/language/src/Form/ContentLanguageSettingsForm.php Configure the content language settings for this site. 1
ContentLanguageSettingsInterface interface Drupal\language core/modules/language/src/ContentLanguageSettingsInterface.php Provides an interface defining language settings for content entities. 1 2
ContentLength class Drupal\Core\StackMiddleware core/lib/Drupal/Core/StackMiddleware/ContentLength.php Adds a Content-Length HTTP header to responses.
ContentLength final class Drupal\big_pipe\StackMiddleware core/modules/big_pipe/src/StackMiddleware/ContentLength.php Defines a big pipe middleware that removes Content-Length headers. 2
ContentModeration class Drupal\content_moderation\Plugin\WorkflowType core/modules/content_moderation/src/Plugin/WorkflowType/ContentModeration.php Attaches workflows to content entity types and their bundles.
ContentModerationConfigureEntityTypesForm class Drupal\content_moderation\Form core/modules/content_moderation/src/Form/ContentModerationConfigureEntityTypesForm.php The form for editing entity types associated with a workflow. 1
ContentModerationConfigureForm class Drupal\content_moderation\Form core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php The content moderation WorkflowType configuration form.
ContentModerationHooks class Drupal\content_moderation\Hook core/modules/content_moderation/src/Hook/ContentModerationHooks.php Hook implementations for content_moderation.
ContentModerationInterface interface Drupal\content_moderation\Plugin\WorkflowType core/modules/content_moderation/src/Plugin/WorkflowType/ContentModerationInterface.php Interface for ContentModeration WorkflowType plugin. 1 1
ContentModerationRouteSubscriber class Drupal\content_moderation\Routing core/modules/content_moderation/src/Routing/ContentModerationRouteSubscriber.php Subscriber for moderated revisionable entity forms. 2

Pagination

  • First page
  • Previous page
  • …
  • Page 34
  • Page 35
  • Page 36
  • Page 37
  • Page 38
  • Page 39
  • Page 40
  • Page 41
  • Page 42
  • …
  • 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