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
AllowedValuesConstraint class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraint.php Checks for the value being allowed. 1
AllowedValuesConstraintValidator class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php Validates the AllowedValues constraint.
AllowListConfigStorage final class Drupal\Core\Recipe core/lib/Drupal/Core/Recipe/AllowListConfigStorage.php A read-only storage wrapper that only allows access to certain config names.
AllowToolbarPath class Drupal\toolbar\PageCache core/modules/toolbar/src/PageCache/AllowToolbarPath.php Cache policy for the toolbar page cache service. 2
AllValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/AllValidator.php @author Bernhard Schussek <bschussek@gmail.com>
AlphabeticallySortedByKeysSniff class SlevomatCodingStandard\Sniffs\Arrays vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Arrays/AlphabeticallySortedByKeysSniff.php
AlphabeticallySortedUsesSniff class SlevomatCodingStandard\Sniffs\Namespaces vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/AlphabeticallySortedUsesSniff.php
AlreadyInstalledException class Drupal\Core\Installer\Exception core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php Exception thrown if Drupal is installed already. 1
AlterableInterface interface Drupal\Core\Database\Query core/lib/Drupal/Core/Database/Query/AlterableInterface.php Interface for a query that can be manipulated via an alter hook. 2 8
AlternativePart final class Symfony\Component\Mime\Part\Multipart vendor/symfony/mime/Part/Multipart/AlternativePart.php @author Fabien Potencier <fabien@symfony.com> 2
AlwaysOffSampler class OpenTelemetry\SDK\Trace\Sampler vendor/open-telemetry/sdk/Trace/Sampler/AlwaysOffSampler.php This implementation of the SamplerInterface always skips record. Example: ``` use OpenTelemetry\Sdk\Trace\AlwaysOffSampler; $sampler = new AlwaysOffSampler(); ``` 1
AlwaysOnSampler class OpenTelemetry\SDK\Trace\Sampler vendor/open-telemetry/sdk/Trace/Sampler/AlwaysOnSampler.php This implementation of the SamplerInterface always records. Example: ``` use OpenTelemetry\Sdk\Trace\AlwaysOnSampler; $sampler = new AlwaysOnSampler(); ``` 2
AmbiguousBundleClassException class Drupal\Core\Entity\Exception core/lib/Drupal/Core/Entity/Exception/AmbiguousBundleClassException.php Exception thrown if a bundle class is defined for multiple bundles. 2
AmbiguousEntityClassException class Drupal\Core\Entity\Exception core/lib/Drupal/Core/Entity/Exception/AmbiguousEntityClassException.php Exception thrown if multiple entity types exist for an entity class. 1 1
AmbiguousOptionException final class SebastianBergmann\CliParser vendor/sebastian/cli-parser/src/exceptions/AmbiguousOptionException.php
AmqpCaster class Symfony\Component\VarDumper\Caster vendor/symfony/var-dumper/Caster/AmqpCaster.php Casts Amqp related classes to array representation.
Analyze class Drupal\views_ui\Form\Ajax core/modules/views_ui/src/Form/Ajax/Analyze.php Displays analysis information for a view.
Analyzer class Drupal\views core/modules/views/src/Analyzer.php View analyzer plugin manager. 3 2
AnalyzeServiceReferencesPass class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/AnalyzeServiceReferencesPass.php Run this pass before passes that need to know more about the relation of your services. 2
AndBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/AndBinary.php 2
AndVersionConstraintGroup class PharIo\Version vendor/phar-io/version/src/constraints/AndVersionConstraintGroup.php
AnnotateCmsInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php
AnnotatedClassDiscovery class Drupal\Component\Annotation\Plugin\Discovery core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. 1 1
AnnotatedClassDiscovery class Drupal\Core\Plugin\Discovery core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php Defines a discovery mechanism to find annotated plugins in PSR-4 namespaces. 1 2
AnnotatedClassDiscoveryAutomatedProviders class Drupal\migrate\Plugin\Discovery core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php Determines providers based on a class's and its parent's namespaces. 1
Annotation class Doctrine\Common\Annotations vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php Annotations class.
Annotation class Google\Protobuf\Internal\GeneratedCodeInfo vendor/google/protobuf/src/Google/Protobuf/Internal/GeneratedCodeInfo/Annotation.php Generated from protobuf message <code>google.protobuf.GeneratedCodeInfo.Annotation</code>
Annotation class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/Annotation.php @internal @template T of PhpDocTagValueNode 7
AnnotationBase abstract class Drupal\Component\Annotation core/lib/Drupal/Component/Annotation/AnnotationBase.php Provides a base class for classed annotations. 3 2
AnnotationBridgeDecorator class Drupal\Component\Annotation\Plugin\Discovery core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotationBridgeDecorator.php Ensures that all definitions are run through the annotation process.
AnnotationException class Doctrine\Common\Annotations vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php Description of AnnotationException 1
AnnotationHelper class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/AnnotationHelper.php @internal 19
AnnotationHelper class PHPStan\Rules\PHPUnit vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/AnnotationHelper.php
AnnotationInterface interface Drupal\Component\Annotation core/lib/Drupal/Component/Annotation/AnnotationInterface.php Defines a common interface for classed annotations. 3 5
AnnotationNameSniff class SlevomatCodingStandard\Sniffs\Commenting vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Commenting/AnnotationNameSniff.php
AnnotationParser final class PHPUnit\Metadata\Parser vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
AnnotationReader class Doctrine\Common\Annotations vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php A reader for docblock annotations.
AnnotationRegistry final class Doctrine\Common\Annotations vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php 4
AnnotationsAreNotSupportedForInternalClassesException final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/Exception/AnnotationsAreNotSupportedForInternalClassesException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 3
AnnotationTypeHelper class SlevomatCodingStandard\Helpers vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/AnnotationTypeHelper.php @internal 5
AnnounceBlock class Drupal\announcements_feed\Plugin\Block core/modules/announcements_feed/src/Plugin/Block/AnnounceBlock.php Provides an 'Announcements Feed' block.
AnnounceCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/AnnounceCommand.php AJAX command for a JavaScript Drupal.announce() call. 1
AnnounceController class Drupal\announcements_feed\Controller core/modules/announcements_feed/src/Controller/AnnounceController.php Controller for community announcements.
AnnounceFetcher final class Drupal\announcements_feed core/modules/announcements_feed/src/AnnounceFetcher.php Service to fetch announcements from the external feed. 2
Announcement final class Drupal\announcements_feed core/modules/announcements_feed/src/Announcement.php Object containing a single announcement from the feed.
AnnouncementsFeedHooks class Drupal\announcements_feed\Hook core/modules/announcements_feed/src/Hook/AnnouncementsFeedHooks.php Hook implementations for announcements_feed.
AnnounceRenderer final class Drupal\announcements_feed core/modules/announcements_feed/src/AnnounceRenderer.php Service to render announcements from the external feed. 2 2
AnonClassDeclarationSniff class PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Sniffs/Classes/AnonClassDeclarationSniff.php
AnonymousUserResponseSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php Response subscriber to handle finished responses for the anonymous user.
AnonymousUserSession class Drupal\Core\Session core/lib/Drupal/Core/Session/AnonymousUserSession.php An account implementation representing an anonymous user. 4

Pagination

  • First page
  • Previous page
  • …
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal