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
DependentPluginDefinitionTrait trait Drupal\Core\Plugin\Definition core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionTrait.php Provides a trait for a plugin definition that has dependencies. 1
DependentPluginInterface interface Drupal\Component\Plugin core/lib/Drupal/Component/Plugin/DependentPluginInterface.php Provides an interface for a plugin that has dependencies. 20 24
DependentWithRemovalPluginInterface interface Drupal\views\Plugin core/modules/views/src/Plugin/DependentWithRemovalPluginInterface.php Provides an interface for a plugin that has dependencies that can be removed. 2 3
Depends final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/Depends.php @psalm-immutable 1
DependsCommand class Composer\Command vendor/composer/composer/src/Composer/Command/DependsCommand.php @author Niels Keurentjes <niels.keurentjes@omines.com>
DependsExternal final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsExternal.php @psalm-immutable 1
DependsExternalUsingDeepClone final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsExternalUsingDeepClone.php @psalm-immutable 1
DependsExternalUsingShallowClone final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsExternalUsingShallowClone.php @psalm-immutable 1
DependsOnClass final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsOnClass.php @psalm-immutable 1
DependsOnClass final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/DependsOnClass.php @psalm-immutable 2
DependsOnClassUsingDeepClone final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsOnClassUsingDeepClone.php @psalm-immutable 1
DependsOnClassUsingShallowClone final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsOnClassUsingShallowClone.php @psalm-immutable 1
DependsOnMethod final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/DependsOnMethod.php @psalm-immutable 2
DependsUsingDeepClone final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsUsingDeepClone.php @psalm-immutable 1
DependsUsingShallowClone final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/DependsUsingShallowClone.php @psalm-immutable 1
Deprecated final class phpDocumentor\Reflection\DocBlock\Tags vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Deprecated.php Reflection class for a {deprecated tag in a Docblock. 1
DeprecatedAnnotationDeclarationSniff class SlevomatCodingStandard\Sniffs\Commenting vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Commenting/DeprecatedAnnotationDeclarationSniff.php
DeprecatedAnnotationsRuleBase abstract class mglaman\PHPStanDrupal\Rules\Deprecations vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/DeprecatedAnnotationsRuleBase.php @implements Rule<Node\Stmt\Class_> 2
DeprecatedArray class Drupal\Component\Utility core/lib/Drupal/Component/Utility/DeprecatedArray.php An array that triggers a deprecation warning when accessed.
DeprecatedCallableInfo final class Twig vendor/twig/twig/src/DeprecatedCallableInfo.php @author Fabien Potencier <fabien@symfony.com> 1
DeprecatedClassHelper class PHPStan\Rules\Deprecations vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/DeprecatedClassHelper.php
DeprecatedComment class Egulias\EmailValidator\Warning vendor/egulias/email-validator/src/Warning/DeprecatedComment.php 1
DeprecatedFunctionsSniff class PHP_CodeSniffer\Standards\Generic\Sniffs\PHP vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/DeprecatedFunctionsSniff.php
DeprecatedHookImplementation class mglaman\PHPStanDrupal\Rules\Deprecations vendor/mglaman/phpstan-drupal/src/Rules/Deprecations/DeprecatedHookImplementation.php @implements Rule<Function_>
DeprecatedNode class Twig\Node vendor/twig/twig/src/Node/DeprecatedNode.php Represents a deprecated node. 1
DeprecatedScopeCheck final class mglaman\PHPStanDrupal\Internal vendor/mglaman/phpstan-drupal/src/Internal/DeprecatedScopeCheck.php 4
DeprecatedScopeHelper class PHPStan\Rules\Deprecations vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/DeprecatedScopeHelper.php 1
DeprecatedScopeResolver interface PHPStan\Rules\Deprecations vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/DeprecatedScopeResolver.php This is the interface for custom deprecated scope resolvers. 4 3
DeprecatedServicePass class Drupal\Core\DependencyInjection\Compiler core/lib/Drupal/Core/DependencyInjection/Compiler/DeprecatedServicePass.php Sets the _deprecated_service_list parameter. 1
DeprecatedServicePropertyTrait trait Drupal\Core\DependencyInjection core/lib/Drupal/Core/DependencyInjection/DeprecatedServicePropertyTrait.php Provides a standard way to announce deprecated properties. 3
DeprecatedSniff class Drupal\Sniffs\Commenting vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Commenting/DeprecatedSniff.php Ensures standard format of @ deprecated tag text in docblock.
DeprecatedSniff interface PHP_CodeSniffer\Sniffs vendor/squizlabs/php_codesniffer/src/Sniffs/DeprecatedSniff.php 1
DeprecatedStatusCode class Opentelemetry\Proto\Trace\V1\Status vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Status/DeprecatedStatusCode.php Protobuf type <code>opentelemetry.proto.trace.v1.Status.DeprecatedStatusCode</code>
DeprecatedTagValueNode class PHPStan\PhpDocParser\Ast\PhpDoc vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/DeprecatedTagValueNode.php 1
DeprecatedTokenParser final class Twig\TokenParser vendor/twig/twig/src/TokenParser/DeprecatedTokenParser.php Deprecates a section of a template. 1
DeprecatedUuidInterface interface Ramsey\Uuid vendor/ramsey/uuid/src/DeprecatedUuidInterface.php This interface encapsulates deprecated methods for ramsey/uuid 1
DeprecatedUuidMethodsTrait

This trait and its methods will be removed in ramsey/uuid 5.0.0.

trait Ramsey\Uuid vendor/ramsey/uuid/src/DeprecatedUuidMethodsTrait.php This trait encapsulates deprecated methods for ramsey/uuid; this trait and its methods will be removed in ramsey/uuid 5.0.0.
DeprecateTrait trait Symfony\Component\DependencyInjection\Loader\Configurator\Traits vendor/symfony/dependency-injection/Loader/Configurator/Traits/DeprecateTrait.php
Deprecation final class PHPUnit\Framework\TestStatus vendor/phpunit/phpunit/src/Framework/TestStatus/Deprecation.php @psalm-immutable
Deprecation class Doctrine\Deprecations vendor/doctrine/deprecations/lib/Doctrine/Deprecations/Deprecation.php Manages Deprecation logging in different ways. 13
DeprecationCollector final class Twig\Util vendor/twig/twig/src/Util/DeprecationCollector.php @author Fabien Potencier <fabien@symfony.com>
DeprecationHelper final class Drupal\Component\Utility core/lib/Drupal/Component/Utility/DeprecationHelper.php Provides a helper method for handling deprecated code paths in projects. 1
DeprecationHelperScope final class mglaman\PHPStanDrupal\DeprecatedScope vendor/mglaman/phpstan-drupal/src/DeprecatedScope/DeprecationHelperScope.php
DeprecationTriggered final class PHPUnit\Event\TestRunner vendor/phpunit/phpunit/src/Event/Events/TestRunner/DeprecationTriggered.php @psalm-immutable 3
DeprecationTriggered final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Issue/DeprecationTriggered.php @psalm-immutable 9
DeprecationTriggeredSubscriber interface PHPUnit\Event\TestRunner vendor/phpunit/phpunit/src/Event/Events/TestRunner/DeprecationTriggeredSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1 1
DeprecationTriggeredSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Issue/DeprecationTriggeredSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 4 4
Depth class Drupal\comment\Plugin\views\field core/modules/comment/src/Plugin/views/field/Depth.php Field handler to display the depth of a comment.
DepthRangeFilterIterator class Symfony\Component\Finder\Iterator vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php DepthRangeFilterIterator limits the directory depth. 1
DerivablePluginDefinitionInterface interface Drupal\Component\Plugin\Definition core/lib/Drupal/Component/Plugin/Definition/DerivablePluginDefinitionInterface.php Provides an interface for a derivable plugin definition. 2 3

Pagination

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