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
DeferCallback final class Revolt\EventLoop\Internal vendor/revolt/event-loop/src/EventLoop/Internal/DeferCallback.php @internal
Deferred final class React\Promise vendor/react/promise/src/Deferred.php @template T
DeferringDispatcher final class PHPUnit\Event vendor/phpunit/phpunit/src/Event/Dispatcher/DeferringDispatcher.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
DefinedTest class Twig\Node\Expression\Test vendor/twig/twig/src/Node/Expression/Test/DefinedTest.php Checks if a variable is defined in the current context. 3
Definition class Symfony\Component\DependencyInjection vendor/symfony/dependency-injection/Definition.php Definition represents a service definition. 1 62
DefinitionErrorExceptionPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php Throws an exception for any Definitions that have errors and still exist.
DegradedNumberConverter

DegradedNumberConverter is no longer necessary for converting numbers on 32-bit systems. Transition to {

class Ramsey\Uuid\Converter\Number vendor/ramsey/uuid/src/Converter/Number/DegradedNumberConverter.php @psalm-immutable
DegradedTimeConverter

DegradedTimeConverter is no longer necessary for converting time on 32-bit systems. Transition to {

class Ramsey\Uuid\Converter\Time vendor/ramsey/uuid/src/Converter/Time/DegradedTimeConverter.php @psalm-immutable 1
DegradedUuid

DegradedUuid is no longer necessary to represent UUIDs on 32-bit systems. Transition typehints to {

class Ramsey\Uuid vendor/ramsey/uuid/src/DegradedUuid.php @psalm-immutable 1
DegradedUuidBuilder

DegradedUuid instances are no longer necessary to support 32-bit systems. Transition to {

class Ramsey\Uuid\Builder vendor/ramsey/uuid/src/Builder/DegradedUuidBuilder.php @psalm-immutable
DelayableQueueInterface interface Drupal\Core\Queue core/lib/Drupal/Core/Queue/DelayableQueueInterface.php Delayable queue interface. 1 1
DelayedEnvelope final class Symfony\Component\Mailer vendor/symfony/mailer/DelayedEnvelope.php @author Fabien Potencier <fabien@symfony.com>
DelayedRequeueException class Drupal\Core\Queue core/lib/Drupal/Core/Queue/DelayedRequeueException.php Throw this exception to leave an item in the queue until its lock expires. 1
DelayedStalenessHandler final class OpenTelemetry\SDK\Metrics\StalenessHandler vendor/open-telemetry/sdk/Metrics/StalenessHandler/DelayedStalenessHandler.php @internal
DelayedStalenessHandlerFactory final class OpenTelemetry\SDK\Metrics\StalenessHandler vendor/open-telemetry/sdk/Metrics/StalenessHandler/DelayedStalenessHandlerFactory.php
Delete class Drupal\mysql\Driver\Database\mysql core/modules/mysql/src/Driver/Database/mysql/Delete.php MySQL implementation of \Drupal\Core\Database\Query\Delete.
Delete class Drupal\Core\Database\Query core/lib/Drupal/Core/Database/Query/Delete.php General class for an abstracted DELETE operation. 3 4
Delete class Drupal\pgsql\Driver\Database\pgsql core/modules/pgsql/src/Driver/Database/pgsql/Delete.php PostgreSQL implementation of \Drupal\Core\Database\Query\Delete.
Delete class Drupal\sqlite\Driver\Database\sqlite core/modules/sqlite/src/Driver/Database/sqlite/Delete.php SQLite implementation of \Drupal\Core\Database\Query\Delete.
DeleteAction class Drupal\Core\Action\Plugin\Action core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php Redirects to an entity deletion form.
DeleteDefaultLanguageException class Drupal\language\Exception core/modules/language/src/Exception/DeleteDefaultLanguageException.php Exception thrown when deleting the default language. 1
DeletedFieldsRepository class Drupal\Core\Field core/lib/Drupal/Core/Field/DeletedFieldsRepository.php Provides a repository for deleted field and field storage objects.
DeletedFieldsRepositoryInterface interface Drupal\Core\Field core/lib/Drupal/Core/Field/DeletedFieldsRepositoryInterface.php Provides an interface for a deleted fields repository. 1 2
DeletedWorkspaceConstraint class Drupal\workspaces\Plugin\Validation\Constraint core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraint.php Deleted workspace constraint.
DeletedWorkspaceConstraintValidator class Drupal\workspaces\Plugin\Validation\Constraint core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php Checks if data still exists for a deleted workspace ID.
DeleteForm class Drupal\comment\Form core/modules/comment/src/Form/DeleteForm.php Provides the comment delete confirmation form. 1
DeleteMultiple class Drupal\node\Form core/modules/node/src/Form/DeleteMultiple.php Provides a node deletion confirmation form. 1 1
DeleteMultipleForm class Drupal\Core\Entity\Form core/lib/Drupal/Core/Entity/Form/DeleteMultipleForm.php Provides an entities deletion confirmation form. 2 3
Delta final class OpenTelemetry\SDK\Metrics\Stream vendor/open-telemetry/sdk/Metrics/Stream/Delta.php @internal @phan-file-suppress PhanUndeclaredTypeParameter, PhanUndeclaredTypeProperty
DeltaStorage final class OpenTelemetry\SDK\Metrics\Stream vendor/open-telemetry/sdk/Metrics/Stream/DeltaStorage.php @internal @phan-file-suppress PhanUndeclaredTypeParameter, PhanUndeclaredTypeProperty
DemoteNode class Drupal\node\Plugin\Action core/modules/node/src/Plugin/Action/DemoteNode.php Demotes a node.
DemoUmamiContentHooks class Drupal\demo_umami_content\Hook core/profiles/demo_umami/modules/demo_umami_content/src/Hook/DemoUmamiContentHooks.php Hook implementations for demo_umami_content.
DenormalizableInterface interface Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/DenormalizableInterface.php Defines the most basic interface a class must implement to be denormalizable.
DenormalizerAwareInterface interface Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/DenormalizerAwareInterface.php @author Joel Wurtz <joel.wurtz@gmail.com> 2 2
DenormalizerAwareTrait trait Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/DenormalizerAwareTrait.php @author Joel Wurtz <joel.wurtz@gmail.com>
DenormalizerInterface interface Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/DenormalizerInterface.php @author Jordi Boggiano <j.boggiano@seld.be> 23 14
DenyAdminRoutes class Drupal\dynamic_page_cache\PageCache\ResponsePolicy core/modules/dynamic_page_cache/src/PageCache/ResponsePolicy/DenyAdminRoutes.php Cache policy for routes with the '_admin_route' option set. 2
DenyNoCacheRoutes class Drupal\Core\PageCache\ResponsePolicy core/lib/Drupal/Core/PageCache/ResponsePolicy/DenyNoCacheRoutes.php Cache policy for routes with the 'no_cache' option set.
DenyNodePreview class Drupal\node\PageCache core/modules/node/src/PageCache/DenyNodePreview.php Cache policy for node preview page. 2
DenyPrivateImageStyleDownload class Drupal\image\PageCache core/modules/image/src/PageCache/DenyPrivateImageStyleDownload.php Cache policy for image preview page. 2
Dependencies final class PHPUnit\Metadata\Api vendor/phpunit/phpunit/src/Metadata/Api/Dependencies.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
DependenciesArraySniff class Drupal\Sniffs\InfoFiles vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/DependenciesArraySniff.php Dependencies should be an array in .info.yml files.
Dependency class Drupal\Core\Extension core/lib/Drupal/Core/Extension/Dependency.php A value object representing dependency information. 3
DependencyResolver final class OpenTelemetry\SDK\Common\Adapter\HttpDiscovery vendor/open-telemetry/sdk/Common/Adapter/HttpDiscovery/DependencyResolver.php
DependencyResolverInterface interface OpenTelemetry\SDK\Common\Http vendor/open-telemetry/sdk/Common/Http/DependencyResolverInterface.php 1 1
DependencySerializationTrait trait Drupal\Core\DependencyInjection core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php Provides dependency injection friendly methods for serialization. 51
DependencySerializationTraitPropertyRule final class mglaman\PHPStanDrupal\Rules\Drupal vendor/mglaman/phpstan-drupal/src/Rules/Drupal/DependencySerializationTraitPropertyRule.php @implements Rule<ClassPropertyNode>
DependencyTrait trait Drupal\Core\Entity core/lib/Drupal/Core/Entity/DependencyTrait.php Provides a trait for managing an object's dependencies. 6
DependentAccessInterface interface Drupal\block_content\Access core/modules/block_content/src/Access/DependentAccessInterface.php Interface for AccessibleInterface objects that have an access dependency. 1 1
DependentPluginDefinitionInterface interface Drupal\Core\Plugin\Definition core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php Provides an interface for a plugin definition that has dependencies. 1 2

Pagination

  • First page
  • Previous page
  • …
  • Page 45
  • Page 46
  • Page 47
  • Page 48
  • Page 49
  • Page 50
  • Page 51
  • Page 52
  • Page 53
  • …
  • 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