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