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
PreserveGlobalState final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/PreserveGlobalState.php @psalm-immutable 1
PrestashopInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php
PrettyPrint class Peast\Formatter vendor/mck89/peast/lib/Peast/Formatter/PrettyPrint.php Pretty print formatter.
PrettyPrinter interface PhpParser vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter.php 1
PrettyPrinterAbstract abstract class PhpParser vendor/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php 1 1
PreviewAwarePluginInterface interface Drupal\Core\Plugin core/lib/Drupal/Core/Plugin/PreviewAwarePluginInterface.php Provides an interface to support preview mode injection in plugins. 2 4
PreviewFallbackInterface interface Drupal\Core\Render core/lib/Drupal/Core/Render/PreviewFallbackInterface.php Allows an element to provide a fallback representation of itself for preview. 1 2
PreviewToggleTrait trait Drupal\layout_builder\Form core/modules/layout_builder/src/Form/PreviewToggleTrait.php Provides a trait that provides a toggle for the content preview.
PrimitiveBase abstract class Drupal\Core\TypedData core/lib/Drupal/Core/TypedData/PrimitiveBase.php Base class for primitive data types. 5 5
PrimitiveDataNormalizer class Drupal\serialization\Normalizer core/modules/serialization/src/Normalizer/PrimitiveDataNormalizer.php Converts primitive data objects to their casted values. 2
PrimitiveInterface interface Drupal\Core\TypedData core/lib/Drupal/Core/TypedData/PrimitiveInterface.php Interface for primitive data. 8 12
PrimitiveTypeConstraint class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraint.php Supports validating all primitive types. 1
PrimitiveTypeConstraintValidator class Drupal\Core\Validation\Plugin\Validation\Constraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php Validates the PrimitiveType constraint.
PrintableNewAnonClassNode class PhpParser\Internal vendor/nikic/php-parser/lib/PhpParser/Internal/PrintableNewAnonClassNode.php This node is used internally by the format-preserving pretty printer to print anonymous classes. 1
PrintedUnexpectedOutput final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/PrintedUnexpectedOutput.php @psalm-immutable 1
PrintedUnexpectedOutputSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/PrintedUnexpectedOutputSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1 1
Printer final class PHPStan\PhpDocParser\Printer vendor/phpstan/phpdoc-parser/src/Printer/Printer.php Inspired by https://github.com/nikic/PHP-Parser/tree/36a6dcd04e7b0285e8f0868f44bd4927802f7df1 1
Printer interface PHPUnit\TextUI\Output vendor/phpunit/phpunit/src/TextUI/Output/Printer/Printer.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 2 8
PrintNode class Twig\Node vendor/twig/twig/src/Node/PrintNode.php Represents a node that outputs an expression. 10
Print_ class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php
PriorityTaggedServiceTrait trait Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/PriorityTaggedServiceTrait.php Trait that allows a generic method to find and sort service by priority option in the tag. 4
PriorityTaggedServiceUtil class Symfony\Component\DependencyInjection\Compiler vendor/symfony/dependency-injection/Compiler/PriorityTaggedServiceTrait.php @internal
PrivateIdentifier class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/PrivateIdentifier.php A node that represents a private identifier.
PrivateKey class Drupal\Core core/lib/Drupal/Core/PrivateKey.php Manages the Drupal private key. 5
PrivateStream class Drupal\Core\StreamWrapper core/lib/Drupal/Core/StreamWrapper/PrivateStream.php Drupal private (private://) stream wrapper class. 3
PrivateTempStore class Drupal\Core\TempStore core/lib/Drupal/Core/TempStore/PrivateTempStore.php Stores and retrieves temporary data for a given owner. 3
PrivateTempStoreFactory class Drupal\Core\TempStore core/lib/Drupal/Core/TempStore/PrivateTempStoreFactory.php Creates a PrivateTempStore object for a given collection. 12
Problem class Composer\DependencyResolver vendor/composer/composer/src/Composer/DependencyResolver/Problem.php Represents a problem detected while solving dependencies
ProblemNormalizer class Symfony\Component\Serializer\Normalizer vendor/symfony/serializer/Normalizer/ProblemNormalizer.php Normalizes errors according to the API Problem spec (RFC 7807). 1
ProblemNormalizerContextBuilder final class Symfony\Component\Serializer\Context\Normalizer vendor/symfony/serializer/Context/Normalizer/ProblemNormalizerContextBuilder.php A helper providing autocompletion for available ProblemNormalizer options.
ProceduralCall final class Drupal\Core\Extension core/lib/Drupal/Core/Extension/ProceduralCall.php Calls procedural hook implementations for backwards compatibility. 1
Process final class PhpTuf\ComposerStager\Internal\Process\Service vendor/php-tuf/composer-stager/src/Internal/Process/Service/Process.php @package Process 1 2
Process class Composer\XdebugHandler vendor/composer/xdebug-handler/src/Process.php Process utility functions
Process final class OpenTelemetry\SDK\Resource\Detectors vendor/open-telemetry/sdk/Resource/Detectors/Process.php
Process class Symfony\Component\Process vendor/symfony/process/Process.php Process is a thin wrapper around proc_* functions to easily start independent PHP processes. 2 24
ProcessControlExtensionNotLoadedException final class SebastianBergmann\Invoker vendor/phpunit/php-invoker/src/exceptions/ProcessControlExtensionNotLoadedException.php
ProcessedCodeCoverageData final class SebastianBergmann\CodeCoverage\Data vendor/phpunit/php-code-coverage/src/Data/ProcessedCodeCoverageData.php @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage 2
ProcessedText class Drupal\filter\Element core/modules/filter/src/Element/ProcessedText.php Provides a processed text render element.
ProcessExecutor class Composer\Util vendor/composer/composer/src/Composer/Util/ProcessExecutor.php @author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be> 39
ProcessFactory final class Drupal\package_manager core/modules/package_manager/src/ProcessFactory.php Defines a process factory which sets the COMPOSER_HOME environment variable.
ProcessFactory final class PhpTuf\ComposerStager\Internal\Process\Factory vendor/php-tuf/composer-stager/src/Internal/Process/Factory/ProcessFactory.php @package Process 2
ProcessFactoryInterface interface PhpTuf\ComposerStager\API\Process\Factory vendor/php-tuf/composer-stager/src/API/Process/Factory/ProcessFactoryInterface.php Creates process objects. 2 5 1
ProcessFailedException class Symfony\Component\Process\Exception vendor/symfony/process/Exception/ProcessFailedException.php Exception for failed processes. 1 5
ProcessField class Drupal\field\Plugin\migrate\process core/modules/field/src/Plugin/migrate/process/ProcessField.php Get the value from a method call on a field plugin instance.
ProcessHelper class Symfony\Component\Console\Helper vendor/symfony/console/Helper/ProcessHelper.php The ProcessHelper class provides helpers to run external processes. 1
ProcessInterface interface PhpTuf\ComposerStager\API\Process\Service vendor/php-tuf/composer-stager/src/API/Process/Service/ProcessInterface.php Builds and runs shell commands. 1 34
ProcessIsolationException final class PHPUnit\Framework vendor/phpunit/phpunit/src/Framework/Exception/ProcessIsolationException.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
ProcessOutputCallback final class Drupal\package_manager core/modules/package_manager/src/ProcessOutputCallback.php A process callback for capturing output.
ProcessPluginBase abstract class Drupal\migrate core/modules/migrate/src/ProcessPluginBase.php The base class for all migrate process plugins. 72 72
ProcessRuntime final class OpenTelemetry\SDK\Resource\Detectors vendor/open-telemetry/sdk/Resource/Detectors/ProcessRuntime.php

Pagination

  • First page
  • Previous page
  • …
  • Page 144
  • Page 145
  • Page 146
  • Page 147
  • Page 148
  • Page 149
  • Page 150
  • Page 151
  • Page 152
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal