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 |
---|---|---|---|---|---|---|---|---|
WorkspaceSafeFormTrait | trait | Drupal\Core\Entity\Form | core/ |
Provides helpers for checking whether objects in forms are workspace-safe. | 2 | |||
WorkspaceSafeFormTrait | trait | Drupal\layout_builder\Form | core/ |
Provides a trait that marks Layout Builder forms as workspace-safe. | ||||
WorkspacesAliasManager | class | Drupal\workspaces | core/ |
Decorates the path_alias.manager service for workspace-specific caching. | ||||
WorkspacesAliasRepository | class | Drupal\workspaces | core/ |
Provides workspace-specific path alias lookup queries. | ||||
WorkspaceSelection | class | Drupal\workspaces\Plugin\EntityReferenceSelection | core/ |
Provides specific access control for the workspace entity type. | ||||
WorkspacesHooks | class | Drupal\workspaces\Hook | core/ |
Hook implementations for workspaces. | ||||
WorkspacesHtmlEntityFormController | class | Drupal\workspaces\Controller | core/ |
Overrides the entity form controller service for workspaces operations. | 2 | |||
WorkspacesLazyBuilders | final class | Drupal\workspaces | core/ |
Defines a service for workspaces #lazy_builder callbacks. | 2 | |||
WorkspacesMenuTreeStorage | class | Drupal\workspaces | core/ |
Overrides the default menu storage to provide workspace-specific menu links. | 2 | |||
WorkspacesServiceProvider | class | Drupal\workspaces | core/ |
Defines a service provider for the Workspaces module. | ||||
WorkspaceSubscriber | class | Drupal\content_moderation\EventSubscriber | core/ |
Checks whether a workspace is publishable, and prevents publishing if needed. | 2 | |||
WorkspacesUiHooks | class | Drupal\workspaces_ui\Hook | core/ |
Hook implementations for the workspaces_ui module. | ||||
WorkspaceSwitcherBlock | class | Drupal\workspaces\Plugin\Block | core/ |
Provides a 'Workspace switcher' block. | ||||
WorkspaceSwitcherForm | class | Drupal\workspaces\Form | core/ |
Provides a form that activates a different workspace. | 1 | |||
WorkspaceViewBuilder | class | Drupal\workspaces | core/ |
Provides a Workspace view builder. | 1 | |||
WrappableOutputFormatterInterface | interface | Symfony\Component\Console\Formatter | vendor/ |
Formatter interface for console output that supports word wrapping. | 1 | 1 | ||
WrappedListener | final class | Symfony\Component\EventDispatcher\Debug | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
Wrappers | class | GPBMetadata\Google\Protobuf | vendor/ |
|||||
WritableArrayRepository | class | Composer\Repository | vendor/ |
Writable array repository. | 2 | |||
WritableFileSystemValidator | class | Drupal\package_manager\Validator | core/ |
Checks that the file system is writable. | ||||
WritableMetricStreamInterface | interface | OpenTelemetry\SDK\Metrics\Stream | vendor/ |
@internal | 1 | 1 | ||
WritableRepositoryInterface | interface | Composer\Repository | vendor/ |
Writable repository interface. | 2 | |||
WriteOperationFailedException | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
5 | ||||
Writer | final class | PHPUnit\Runner\Baseline | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
WriteSafeSessionHandler | class | Drupal\Core\Session | core/ |
Wraps the session handler to prevent writes when not necessary or allowed. | ||||
WriteSafeSessionHandlerInterface | interface | Drupal\Core\Session | core/ |
Provides an interface for session handlers where writing can be disabled. | 1 | |||
XdebugDriver | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage | ||||
XdebugHandler | class | Composer\XdebugHandler | vendor/ |
@author John Stevenson <john-stevenson@blueyonder.co.uk> | 4 | |||
XdebugNotAvailableException | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
|||||
XdebugNotEnabledException | final class | SebastianBergmann\CodeCoverage\Driver | vendor/ |
|||||
Xml | class | PHP_CodeSniffer\Reports | vendor/ |
|||||
Xml | final class | PHPUnit\TextUI\XmlConfiguration\CodeCoverage\Report | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
Xml | final class | PHPUnit\Util | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
XmlConfigurationFileFinder | final class | PHPUnit\TextUI\CliArguments | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 2 | |||
XmlDescriptor | class | Symfony\Component\Console\Descriptor | vendor/ |
XML descriptor. | 1 | |||
XmlDumper | class | Symfony\Component\DependencyInjection\Dumper | vendor/ |
XmlDumper dumps a service container as an XML string. | ||||
XmlEncoder | class | Symfony\Component\Serializer\Encoder | vendor/ |
@author Jordi Boggiano <j.boggiano@seld.be> @author John Wards <jwards@whiteoctober.co.uk> @author Fabian Vogler <fabian@equivalence.ch> @author Kévin Dunglas <dunglas@gmail.com> @author Dany Maillard… | 3 | |||
XmlEncoder | class | Drupal\serialization\Encoder | core/ |
Adds XML support for serializer. | 2 | |||
XmlEncoderContextBuilder | final class | Symfony\Component\Serializer\Context\Encoder | vendor/ |
A helper providing autocompletion for available XmlEncoder options. | ||||
XmlException | final class | PHPUnit\Util\Xml | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 7 | |||
XmlException | final class | SebastianBergmann\CodeCoverage | vendor/ |
1 | ||||
XmlFileLoader | class | Symfony\Component\DependencyInjection\Loader | vendor/ |
XmlFileLoader loads XML files service definitions. | 2 | |||
XmlFileLoader | class | Symfony\Component\Routing\Loader | vendor/ |
XmlFileLoader loads XML routing files. | ||||
XmlFileLoader | class | Symfony\Component\Serializer\Mapping\Loader | vendor/ |
Loads XML mapping files. | ||||
XmlFileLoader | class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata from an XML file. | 1 | |||
XmlFilesLoader | class | Symfony\Component\Validator\Mapping\Loader | vendor/ |
Loads validation metadata from a list of XML files. | ||||
XmlReaderCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts XmlReader class to array representation. | ||||
XmlResourceCaster | class | Symfony\Component\VarDumper\Caster | vendor/ |
Casts XML resources to array representation. | ||||
XMLSerializer | class | TheSeer\Tokenizer | vendor/ |
1 | ||||
XOAuth2Authenticator | class | Symfony\Component\Mailer\Transport\Smtp\Auth | vendor/ |
Handles XOAUTH2 authentication. |