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
WebDriver class WebDriver vendor/lullabot/php-webdriver/lib/WebDriver/WebDriver.php WebDriver class 1
WebDriverInterface interface WebDriver vendor/lullabot/php-webdriver/lib/WebDriver/WebDriverInterface.php WebDriverInterface interface 1
Week final class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/Week.php @author Alexandre Daubois <alex.daubois@gmail.com>
WeekDate class Drupal\datetime\Plugin\views\argument core/modules/datetime/src/Plugin/views/argument/WeekDate.php Argument handler for a week.
WeekDate class Drupal\views\Plugin\views\argument core/modules/views/src/Plugin/views/argument/WeekDate.php Argument handler for a week.
WeekValidator final class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/WeekValidator.php @author Alexandre Daubois <alex.daubois@gmail.com>
Weight class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/Weight.php Provides a form element for input of a weight.
When class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/When.php Conditionally apply validation constraints based on an expression using the ExpressionLanguage syntax.
When class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/When.php An attribute to tell under which environment this class should be registered as a service. 2
WhenNot class Symfony\Component\DependencyInjection\Attribute vendor/symfony/dependency-injection/Attribute/WhenNot.php An attribute to tell under which environment this class should NOT be registered as a service. 2
WhenValidator final class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/WhenValidator.php
WhileStatement class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/WhileStatement.php A node that represents a while loop. For example: while (test) {}
While_ class PhpParser\Node\Stmt vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php 1
WhitespaceHandler class Symfony\Component\CssSelector\Parser\Handler vendor/symfony/css-selector/Parser/Handler/WhitespaceHandler.php CSS selector whitespace handler.
WHMCSInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php
WidgetBase abstract class Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetBase.php Base class for 'Field widget' plugin implementations. 18 18
WidgetBaseInterface interface Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetBaseInterface.php Base interface definition for "Field widget" plugins. 1
WidgetInterface interface Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetInterface.php Interface definition for field widget plugins. 1 1 1
WidgetPluginManager class Drupal\Core\Field core/lib/Drupal/Core/Field/WidgetPluginManager.php Plugin type manager for field widgets.
Window class WebDriver vendor/lullabot/php-webdriver/lib/WebDriver/Window.php WebDriver\Window class 1
WindowsPipes class Symfony\Component\Process\Pipes vendor/symfony/process/Pipes/WindowsPipes.php WindowsPipes implementation uses temporary files as handles. 1
WinterInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/WinterInstaller.php
WithHttpStatus class Symfony\Component\HttpKernel\Attribute vendor/symfony/http-kernel/Attribute/WithHttpStatus.php Defines the HTTP status code applied to an exception. 1
WithLogLevel final class Symfony\Component\HttpKernel\Attribute vendor/symfony/http-kernel/Attribute/WithLogLevel.php Defines the log level applied to an exception. 1
WithNode class Twig\Node vendor/twig/twig/src/Node/WithNode.php Represents a nested "with" scope. 1
WithoutErrorHandler final class PHPUnit\Metadata vendor/phpunit/phpunit/src/Metadata/WithoutErrorHandler.php @psalm-immutable
WithoutErrorHandler final class PHPUnit\Framework\Attributes vendor/phpunit/phpunit/src/Framework/Attributes/WithoutErrorHandler.php @psalm-immutable 1
WithSampledTraceExemplarFilter final class OpenTelemetry\SDK\Metrics\Exemplar\ExemplarFilter vendor/open-telemetry/sdk/Metrics/Exemplar/ExemplarFilter/WithSampledTraceExemplarFilter.php The exemplar spec is not yet stable, and can change at any time. 2
WithSpan final class OpenTelemetry\API\Instrumentation vendor/open-telemetry/api/Instrumentation/WithSpan.php Functions and methods with this attribute will be auto-instrumented by the OpenTelemetry extension.
WithSpanHandler class OpenTelemetry\API\Instrumentation vendor/open-telemetry/api/Instrumentation/WithSpanHandler.php Generic pre-hook and post-hook handlers for attribute-based auto instrumentation
WithStatement class Peast\Syntax\Node vendor/mck89/peast/lib/Peast/Syntax/Node/WithStatement.php A node that represents a with statement. For example: with (test) {}
WithTokenParser final class Twig\TokenParser vendor/twig/twig/src/TokenParser/WithTokenParser.php Creates a nested scope. 1
Wizard class SebastianBergmann\CodeUnitReverseLookup vendor/sebastian/code-unit-reverse-lookup/src/Wizard.php 2
WizardException class Drupal\views\Plugin\views\wizard core/modules/views/src/Plugin/views/wizard/WizardException.php A custom exception class for our errors. 1
WizardInterface interface Drupal\views\Plugin\views\wizard core/modules/views/src/Plugin/views/wizard/WizardInterface.php Defines a common interface for Views Wizard plugins. 1 2
WizardPluginBase abstract class Drupal\views\Plugin\views\wizard core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php Base class for Views wizard plugins. 11 11
WolfCMSInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php
WordCount final class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/WordCount.php @author Alexandre Daubois <alex.daubois@gmail.com>
WordCountValidator final class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/WordCountValidator.php @author Alexandre Daubois <alex.daubois@gmail.com>
WordLevelDiff class Drupal\Component\Diff core/lib/Drupal/Component/Diff/WordLevelDiff.php @todo document @private @subpackage DifferenceEngine 1
WordPressInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php
Workflow class Drupal\workflows\Entity core/modules/workflows/src/Entity/Workflow.php Defines the workflow entity. 8
WorkflowAccessControlHandler class Drupal\workflows core/modules/workflows/src/WorkflowAccessControlHandler.php Access controller for the Workflow entity. 1
WorkflowAddForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowAddForm.php Form for adding workflows. 1
WorkflowDeleteForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowDeleteForm.php Builds the form to delete Workflow entities. 1
WorkflowEditForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowEditForm.php The form for editing workflows. 1
WorkflowInterface interface Drupal\workflows core/modules/workflows/src/WorkflowInterface.php Provides an interface for defining workflow entities. 1 10
WorkflowListBuilder class Drupal\workflows core/modules/workflows/src/WorkflowListBuilder.php Provides a listing of Workflow entities. 1
WorkflowsHooks class Drupal\workflows\Hook core/modules/workflows/src/Hook/WorkflowsHooks.php Hook implementations for workflows.
WorkflowStateAddForm class Drupal\workflows\Form core/modules/workflows/src/Form/WorkflowStateAddForm.php Entity form variant for adding workflow states. 1

Pagination

  • First page
  • Previous page
  • …
  • Page 207
  • Page 208
  • Page 209
  • Page 210
  • Page 211
  • Page 212
  • Page 213
  • Page 214
  • Page 215
  • Next page
  • Last page
RSS feed
Powered by Drupal