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
MissingGroupException class Drupal\Core\Test\Exception core/lib/Drupal/Core/Test/Exception/MissingGroupException.php Exception thrown when a test class is missing an @group annotation. 1
MissingInputException class Symfony\Component\Console\Exception vendor/symfony/console/Exception/MissingInputException.php Represents failure to read input from stdin. 1
MissingMandatoryParametersException class Symfony\Component\Routing\Exception vendor/symfony/routing/Exception/MissingMandatoryParametersException.php Exception thrown when a route cannot be generated because of missing mandatory parameters. 6
MissingOptionsException class Symfony\Component\Validator\Exception vendor/symfony/validator/Exception/MissingOptionsException.php 6
MissingThemeDependencyException class Drupal\Core\Theme core/lib/Drupal/Core/Theme/MissingThemeDependencyException.php Exception to be thrown when base theme for installed theme is not installed.
MissingValueContextException class Drupal\Component\Plugin\Exception core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php An exception class thrown when contexts exist but are missing a value. 2
MixedPart final class Symfony\Component\Mime\Part\Multipart vendor/symfony/mime/Part/Multipart/MixedPart.php @author Fabien Potencier <fabien@symfony.com> 2
MixedType final class SebastianBergmann\Type vendor/sebastian/type/src/type/MixedType.php
Mixed_ final class phpDocumentor\Reflection\Types vendor/phpdocumentor/type-resolver/src/Types/Mixed_.php Value Object representing an unknown, or mixed, type. 9
Mixin class Google\Protobuf vendor/google/protobuf/src/Google/Protobuf/Mixin.php Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows:
Mixin final class phpDocumentor\Reflection\DocBlock\Tags vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Mixin.php Reflection class for a {mixin tag in a Docblock. 1
Mixin trait Webmozart\Assert vendor/webmozart/assert/src/Mixin.php This trait provides nurllOr*, all* and allNullOr* variants of assertion base methods. Do not use this trait directly: it will change, and is not designed for reuse.
MixinTagValueNode class PHPStan\PhpDocParser\Ast\PhpDoc vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/MixinTagValueNode.php 1
MockArraySessionStorage class Symfony\Component\HttpFoundation\Session\Storage vendor/symfony/http-foundation/Session/Storage/MockArraySessionStorage.php MockArraySessionStorage mocks the session for unit tests. 1 2
MockBuilder final class PHPUnit\Framework\MockObject vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php @psalm-template MockedType 2
MockBuilderDynamicReturnTypeExtension class PHPStan\Type\PHPUnit vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/MockBuilderDynamicReturnTypeExtension.php
MockClass final class PHPUnit\Framework\MockObject\Generator vendor/phpunit/phpunit/src/Framework/MockObject/Generator/MockClass.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockClientStrategy final class Http\Discovery\Strategy vendor/php-http/discovery/src/Strategy/MockClientStrategy.php Find the Mock client.
MockFileFinder class Drupal\Component\Annotation\Reflection core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php Defines a mock file finder that only returns a single filename. 5
MockFileSessionStorage class Symfony\Component\HttpFoundation\Session\Storage vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php MockFileSessionStorage is used to mock sessions for functional testing where you may need to persist session data across separate PHP processes.
MockFileSessionStorageFactory class Symfony\Component\HttpFoundation\Session\Storage vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorageFactory.php @author Jérémy Derussé <jeremy@derusse.com>
MockHandler class GuzzleHttp\Handler vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php Handler that returns responses or throw exceptions from a queue.
MockMethod final class PHPUnit\Framework\MockObject\Generator vendor/phpunit/phpunit/src/Framework/MockObject/Generator/MockMethod.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockMethodCallRule class PHPStan\Rules\PHPUnit vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/MockMethodCallRule.php @implements Rule<MethodCall>
MockMethodSet final class PHPUnit\Framework\MockObject\Generator vendor/phpunit/phpunit/src/Framework/MockObject/Generator/MockMethodSet.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockObject interface PHPUnit\Framework\MockObject vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Interface/MockObject.php @method InvocationMocker method($constraint) 1 5
MockObjectApi trait PHPUnit\Framework\MockObject vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Api/MockObjectApi.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1
MockObjectComparator final class SebastianBergmann\Comparator vendor/sebastian/comparator/src/MockObjectComparator.php Compares PHPUnit\Framework\MockObject\MockObject instances for equality.
MockObjectCreated final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectCreated.php @psalm-immutable
MockObjectCreatedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectCreatedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockObjectDynamicReturnTypeExtension class PHPStan\Type\PHPUnit vendor/phpstan/phpstan-phpunit/src/Type/PHPUnit/MockObjectDynamicReturnTypeExtension.php
MockObjectForAbstractClassCreated final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectForAbstractClassCreated.php @psalm-immutable
MockObjectForAbstractClassCreatedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectForAbstractClassCreatedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockObjectForIntersectionOfInterfacesCreated final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectForIntersectionOfInterfacesCreated.php @psalm-immutable
MockObjectForIntersectionOfInterfacesCreatedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectForIntersectionOfInterfacesCreatedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockObjectForTraitCreated final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectForTraitCreated.php @psalm-immutable
MockObjectForTraitCreatedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectForTraitCreatedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockObjectFromWsdlCreated final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectFromWsdlCreated.php @psalm-immutable
MockObjectFromWsdlCreatedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/TestDouble/MockObjectFromWsdlCreatedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockObjectInternal interface PHPUnit\Framework\MockObject vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Interface/MockObjectInternal.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
MockObjectTypeNodeResolverExtension class PHPStan\PhpDoc\PHPUnit vendor/phpstan/phpstan-phpunit/src/PhpDoc/PHPUnit/MockObjectTypeNodeResolverExtension.php
MockPhpStorage class Drupal\system\PhpStorage core/modules/system/src/PhpStorage/MockPhpStorage.php Mock PHP storage class used for testing.
MockTrait

https://github.com/sebastianbergmann/phpunit/issues/5243

final class PHPUnit\Framework\MockObject\Generator vendor/phpunit/phpunit/src/Framework/MockObject/Generator/MockTrait.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
MockType interface PHPUnit\Framework\MockObject\Generator vendor/phpunit/phpunit/src/Framework/MockObject/Generator/MockType.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2
Mod class PhpParser\Node\Expr\BinaryOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Mod.php
Mod class PhpParser\Node\Expr\AssignOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Mod.php
ModalRenderer class Drupal\Core\Render\MainContent core/lib/Drupal/Core/Render/MainContent/ModalRenderer.php Default main content renderer for modal dialog requests.
ModBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/ModBinary.php 1
ModeratedContentController class Drupal\content_moderation\Controller core/modules/content_moderation/src/Controller/ModeratedContentController.php Defines a controller to list moderated nodes.
ModeratedNodeListBuilder class Drupal\content_moderation core/modules/content_moderation/src/ModeratedNodeListBuilder.php Defines a class to build a listing of moderated node entities. 1

Pagination

  • First page
  • Previous page
  • …
  • Page 120
  • Page 121
  • Page 122
  • Page 123
  • Page 124
  • Page 125
  • Page 126
  • Page 127
  • Page 128
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal