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
PrecedingConstraintAwareValidatorTrait trait Drupal\ckeditor5\Plugin\Validation\Constraint core/modules/ckeditor5/src/Plugin/Validation/Constraint/PrecedingConstraintAwareValidatorTrait.php A constraint may need preceding constraints to not have been violated.
PreCommandRunEvent class Composer\Plugin vendor/composer/composer/src/Composer/Plugin/PreCommandRunEvent.php The pre command run event. 2
PreCondition final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/PreCondition.php @psalm-immutable
PreCondition final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/PreCondition.php @psalm-immutable 1
PreConditionCalled final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PreConditionCalled.php @psalm-immutable
PreConditionCalledSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PreConditionCalledSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
PreconditionException class PhpTuf\ComposerStager\API\Exception vendor/php-tuf/composer-stager/src/API/Exception/PreconditionException.php This exception is thrown when an API operation has an unfulfilled precondition. 20
PreconditionFailedHttpException class Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/PreconditionFailedHttpException.php @author Ben Ramsey <ben@benramsey.com> 1 3
PreConditionFinished final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PreConditionFinished.php @psalm-immutable
PreConditionFinishedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/HookMethod/PreConditionFinishedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
PreconditionInterface interface PhpTuf\ComposerStager\API\Precondition\Service vendor/php-tuf/composer-stager/src/API/Precondition/Service/PreconditionInterface.php Defines a precondition for an API operation and how to verify it. 24 3
PreconditionRequiredHttpException class Symfony\Component\HttpKernel\Exception vendor/symfony/http-kernel/Exception/PreconditionRequiredHttpException.php @author Ben Ramsey <ben@benramsey.com> 1 1
PreconfiguredFieldUiOptionsInterface interface Drupal\Core\Field core/lib/Drupal/Core/Field/PreconfiguredFieldUiOptionsInterface.php Defines an interface for exposing "preconfigured" field definitions. 1 1
PreCreateEvent final class Drupal\package_manager\Event core/modules/package_manager/src/Event/PreCreateEvent.php Event fired before a stage directory is created. 13
PreDec class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php
PredefinedArray class JsonSchema\Uri\Retrievers vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php URI retrieved based on a predefined array of schemas
PredictionException interface Prophecy\Exception\Prediction vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/PredictionException.php 4 5
PredictionInterface interface Prophecy\Prediction vendor/phpspec/prophecy/src/Prophecy/Prediction/PredictionInterface.php Prediction interface. Predictions are logical test blocks, tied to `should...` keyword. 4
PreExistingConfigException class Drupal\Core\Config core/lib/Drupal/Core/Config/PreExistingConfigException.php An exception thrown if configuration with the same name already exists. 5
PreFileDownloadEvent class Composer\Plugin vendor/composer/composer/src/Composer/Plugin/PreFileDownloadEvent.php The pre file download event. 2
PrefixFloodInterface interface Drupal\Core\Flood core/lib/Drupal/Core/Flood/PrefixFloodInterface.php Defines an interface for flood controllers that clear by identifier prefix. 2 1
PrefixTrait trait Symfony\Component\Routing\Loader\Configurator\Traits vendor/symfony/routing/Loader/Configurator/Traits/PrefixTrait.php @internal 2
Preg class Composer\Pcre vendor/composer/pcre/src/Preg.php 108
PregMatchFlags final class Composer\Pcre\PHPStan vendor/composer/pcre/src/PHPStan/PregMatchFlags.php
PregMatchParameterOutTypeExtension final class Composer\Pcre\PHPStan vendor/composer/pcre/src/PHPStan/PregMatchParameterOutTypeExtension.php
PregMatchTypeSpecifyingExtension final class Composer\Pcre\PHPStan vendor/composer/pcre/src/PHPStan/PregMatchTypeSpecifyingExtension.php
PregReplaceCallbackClosureTypeExtension final class Composer\Pcre\PHPStan vendor/composer/pcre/src/PHPStan/PregReplaceCallbackClosureTypeExtension.php
PregSecuritySniff class Drupal\Sniffs\Semantics vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Semantics/PregSecuritySniff.php Check the usage of the preg functions to ensure the insecure /e flag isn't used: https://www.drupal.org/node/750148
PreImportEvent final class Drupal\Core\DefaultContent core/lib/Drupal/Core/DefaultContent/PreImportEvent.php Event dispatched before default content is imported.
PreInc class PhpParser\Node\Expr vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php
PreloadableRouteProviderInterface interface Drupal\Core\Routing core/lib/Drupal/Core/Routing/PreloadableRouteProviderInterface.php Extends the router provider interface to pre-load routes. 2 1
Preloader final class Symfony\Component\DependencyInjection\Dumper vendor/symfony/dependency-injection/Dumper/Preloader.php @author Nicolas Grekas <p@tchwork.com> 1
PreOperationStageEvent abstract class Drupal\package_manager\Event core/modules/package_manager/src/Event/PreOperationStageEvent.php Base class for events dispatched before a stage life cycle operation. 4 20
PreparationFailed final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/PreparationFailed.php @psalm-immutable 1
PreparationFailedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/PreparationFailedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1 1
PreparationStarted final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/PreparationStarted.php @psalm-immutable 2
PreparationStartedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/PreparationStartedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 1 1
PrepareBodyMiddleware class GuzzleHttp vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php Prepares requests that contain a body, adding the Content-Length, Content-Type, and Expect headers.
Prepared final class PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/Prepared.php @psalm-immutable 10
PreparedSubscriber interface PHPUnit\Event\Test vendor/phpunit/phpunit/src/Event/Events/Test/Lifecycle/PreparedSubscriber.php @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit 6 6
PrepareLayout class Drupal\layout_builder\EventSubscriber core/modules/layout_builder/src/EventSubscriber/PrepareLayout.php An event subscriber to prepare section storage. 2
PrepareLayoutEvent class Drupal\layout_builder\Event core/modules/layout_builder/src/Event/PrepareLayoutEvent.php Event fired in #pre_render of \Drupal\layout_builder\Element\LayoutBuilder. 2
PrepareModulesEntityUninstallForm class Drupal\system\Form core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php Provides a form removing module content entities data before uninstallation. 1
PrependCommand class Drupal\Core\Ajax core/lib/Drupal/Core/Ajax/PrependCommand.php AJAX command for calling the jQuery insert() method. 4
PrependExtensionInterface interface Symfony\Component\DependencyInjection\Extension vendor/symfony/dependency-injection/Extension/PrependExtensionInterface.php 2 2
PrePoolCreateEvent class Composer\Plugin vendor/composer/composer/src/Composer/Plugin/PrePoolCreateEvent.php The pre command run event. 1
PreReleaseSuffix class PharIo\Version vendor/phar-io/version/src/PreReleaseSuffix.php
PrerenderList abstract class Drupal\views\Plugin\views\field core/modules/views/src/Plugin/views/field/PrerenderList.php Field handler to provide a list of items. 3 3
PreRequireEvent final class Drupal\package_manager\Event core/modules/package_manager/src/Event/PreRequireEvent.php Event fired before packages are updated to the stage directory. 7
PreserveGlobalState final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/PreserveGlobalState.php @psalm-immutable 1

Pagination

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