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
PluralTranslation class Drupal\Core\Annotation core/lib/Drupal/Core/Annotation/PluralTranslation.php Defines an annotation object for strings that require plural forms.
PluralVariants class Drupal\config_translation\FormElement core/modules/config_translation/src/FormElement/PluralVariants.php Defines form elements for plurals in configuration translation.
Plus class PhpParser\Node\Expr\BinaryOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php
Plus class PhpParser\Node\Expr\AssignOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Plus.php
PoDatabaseReader class Drupal\locale core/modules/locale/src/PoDatabaseReader.php Gettext PO reader working with the locale module database. 1
PoDatabaseWriter class Drupal\locale core/modules/locale/src/PoDatabaseWriter.php Gettext PO writer working with the locale module database.
PoHeader class Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoHeader.php Gettext PO header handler. 2
PoItem class Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoItem.php PoItem handles one translation. 10
PolicyInterface interface Composer\DependencyResolver vendor/composer/composer/src/Composer/DependencyResolver/PolicyInterface.php @author Nils Adermann <naderman@naderman.de> 1 1
PoMemoryWriter class Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoMemoryWriter.php Defines a Gettext PO memory writer, to be used by the installer. 1
PoMetadataInterface interface Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoMetadataInterface.php Methods required for both reader and writer implementations. 2
Pool class Composer\DependencyResolver vendor/composer/composer/src/Composer/DependencyResolver/Pool.php A package pool contains all packages for dependency resolution 5
Pool class GuzzleHttp vendor/guzzlehttp/guzzle/src/Pool.php Sends an iterator of requests concurrently using a capped pool size.
PoolBuilder class Composer\DependencyResolver vendor/composer/composer/src/Composer/DependencyResolver/PoolBuilder.php @author Nils Adermann <naderman@naderman.de> 1
PoolOptimizer class Composer\DependencyResolver vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php Optimizes a given pool 2
PoReaderInterface interface Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoReaderInterface.php Shared interface definition for all Gettext PO Readers. 2 2
PortoInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/PortoInstaller.php
PortRequestMatcher class Symfony\Component\HttpFoundation\RequestMatcher vendor/symfony/http-foundation/RequestMatcher/PortRequestMatcher.php Checks the HTTP port of a Request.
Position class Peast\Syntax vendor/mck89/peast/lib/Peast/Syntax/Position.php This class represents the position in the source code. 1
Positive class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Positive.php Validates that a value is a positive number.
PositiveInteger final class phpDocumentor\Reflection\PseudoTypes vendor/phpdocumentor/type-resolver/src/PseudoTypes/PositiveInteger.php Value Object representing the type 'int'. 1
PositiveOrZero class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/PositiveOrZero.php Validates that a value is a positive number or equal to zero.
PostApplyEvent final class Drupal\package_manager\Event core/modules/package_manager/src/Event/PostApplyEvent.php Event fired after staged changes are synced to the active directory. 4
PostCondition final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/PostCondition.php @psalm-immutable 2
PostCondition final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/PostCondition.php @psalm-immutable
PostConditionCalled final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PostConditionCalled.php @psalm-immutable
PostConditionCalledSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PostConditionCalledSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
PostConditionFinished final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PostConditionFinished.php @psalm-immutable
PostConditionFinishedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PostConditionFinishedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
PostCreateEvent final class Drupal\package_manager\Event core/modules/package_manager/src/Event/PostCreateEvent.php Event fired after a stage directory has been created. 2
PostDec class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php
PostFileDownloadEvent class Composer\Plugin vendor/composer/composer/src/Composer/Plugin/PostFileDownloadEvent.php The post file download event. 2
PostgresqlDateSql class Drupal\views\Plugin\views\query core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php PostgreSQL-specific date handling. 2
PostgreSqlStore class Symfony\Component\Lock\Store vendor/symfony/lock/Store/PostgreSqlStore.php PostgreSqlStore is a PersistingStoreInterface implementation using PostgreSql advisory locks.
PostInc class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php
PostPackageEventListenerInterface interface Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/PostPackageEventListenerInterface.php Interface for post package event listeners. 1
PoStreamInterface interface Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoStreamInterface.php Common functions for file/stream based PO readers/writers. 2
PoStreamReader class Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoStreamReader.php Implements Gettext PO stream reader. 2
PoStreamWriter class Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoStreamWriter.php Defines a Gettext PO stream writer. 1
PostRequireEvent final class Drupal\package_manager\Event core/modules/package_manager/src/Event/PostRequireEvent.php Event fired after packages are updated to the stage directory. 2
PostStatementCommentSniff class Drupal\Sniffs\Commenting vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Commenting/PostStatementCommentSniff.php Largely copied from \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\PostStatementCommentSniff but we want the fixer to move the comment to the previous line.
PostStatementCommentSniff class PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Commenting/PostStatementCommentSniff.php
PosUnary class Twig\Node\Expression\Unary vendor/twig/twig/src/Node/Expression/Unary/PosUnary.php 3
Pow class PhpParser\Node\Expr\BinaryOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Pow.php
Pow class PhpParser\Node\Expr\AssignOp vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php
PowerBinary class Twig\Node\Expression\Binary vendor/twig/twig/src/Node/Expression/Binary/PowerBinary.php 1
PoWriterInterface interface Drupal\Component\Gettext core/lib/Drupal/Component/Gettext/PoWriterInterface.php Shared interface definition for all Gettext PO Writers. 3 1
PPIInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/PPIInstaller.php
PreApplyEvent final class Drupal\package_manager\Event core/modules/package_manager/src/Event/PreApplyEvent.php Event fired before staged changes are synced to the active directory. 19
Precedence class PhpParser\Node\Stmt\TraitUseAdaptation vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php

Pagination

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