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
Name | Type | Namespace | Location | Description | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|
ZipTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Archiver\Zip @group zip | |||
Zip | class |
Drupal\ |
core/ |
Defines an archiver implementation for .zip files. | 1 | ||
YamlTestBase | abstract class |
Drupal\ |
core/ |
Provides standard data to validate different YAML implementations. | 1 | ||
YamlSymfony Deprecated | class |
Drupal\ |
core/ |
Default serialization for YAML using the Symfony component. | |||
YamlPeclTest | class |
Drupal\ |
core/ |
Tests the YamlPecl serialization implementation. | |||
YamlPecl | class |
Drupal\ |
core/ |
Provides default serialization for YAML using the PECL extension. | 1 | ||
YamlFileLoader | class |
Drupal\ |
core/ |
YamlFileLoader loads YAML files service definitions. | 1 | ||
YamlDiscoveryTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Plugin\Discovery\YamlDiscovery @group Plugin | |||
YamlDiscoveryTest | class |
Drupal\ |
core/ |
YamlDiscovery component unit tests. | |||
YamlDiscoveryTest | class |
Drupal\ |
core/ |
YamlDiscovery component unit tests. | |||
YamlDiscoveryDecoratorTest | class |
Drupal\ |
core/ |
YamlDiscoveryDecorator unit tests. | |||
YamlDiscoveryDecorator | class |
Drupal\ |
core/ |
Enables YAML discovery for plugin definitions. | 3 | ||
YamlDiscovery | class |
Drupal\ |
core/ |
Allows YAML files to define plugin definitions. | 3 | 6 | |
YamlDiscovery | class |
Drupal\ |
core/ |
Provides discovery for YAML files within a given set of directories. | 5 | ||
YamlDiscovery | class |
Drupal\ |
core/ |
Provides discovery for YAML files within a given set of directories. | 1 | 4 | |
YamlDirectoryDiscoveryTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\Core\Plugin\Discovery\YamlDirectoryDiscovery | |||
YamlDirectoryDiscoveryTest | class |
Drupal\ |
core/ |
YamlDirectoryDiscoveryTest component unit tests. | |||
YamlDirectoryDiscovery | class |
Drupal\ |
core/ |
Allows multiple YAML files per directory to define plugin definitions. | 2 | ||
YamlDirectoryDiscovery | class |
Drupal\ |
core/ |
Discovers multiple YAML files in a set of directories. | 3 | ||
Yaml | class |
Drupal\ |
core/ |
Provides a YAML serialization implementation using symfony/yaml. | 10 | 2 | |
Y2038TimestampUpdateTest | class |
Drupal\ |
core/ |
Tests update of timestamp fields to bigint. | |||
XssUnitTest | class |
Drupal\ |
core/ |
Tests XSS filtering. | |||
XssTest | class |
Drupal\ |
core/ |
XSS Filtering tests. | |||
XssTest | class |
Drupal\ |
core/ |
Tests the Xss vulnerability. | |||
Xss | class |
Drupal\ |
core/ |
Provides helper to filter for cross-site scripting. | 1 | 30 | |
XmlNormalizationQuirksTrait | trait |
Drupal\ |
core/ |
Trait for ResourceTestBase subclasses testing $format='xml'. | 1 | ||
XmlEntityNormalizationQuirksTrait | trait |
Drupal\ |
core/ |
Trait for EntityResourceTestBase subclasses testing $format='xml'. | 144 | ||
XmlEncoderTest | class |
Drupal\ |
core/ |
@coversDefaultClass \Drupal\serialization\Encoder\XmlEncoder @group serialization | |||
XmlEncoder | class |
Drupal\ |
core/ |
Adds XML support for serializer. | 2 | 2 | |
XdebugRequestTraitTest | class |
Drupal\ |
core/ |
Provides tests for the Xdebug request trait. | |||
XdebugRequestTrait | trait |
Drupal\ |
core/ |
1 | |||
WriteSafeSessionHandlerTest | class |
Drupal\ |
core/ |
Tests \Drupal\Core\Session\WriteSafeSessionHandler. | |||
WriteSafeSessionHandlerInterface | interface |
Drupal\ |
core/ |
Provides an interface for session handlers where writing can be disabled. | 1 | ||
WriteSafeSessionHandler | class |
Drupal\ |
core/ |
Wraps the session handler to prevent writes when not necessary or allowed. | 1 | 2 | |
WorkspaceXmlCookieTest | class |
Drupal\ |
core/ |
Test workspace entities for XML requests. | |||
WorkspaceXmlBasicAuthTest | class |
Drupal\ |
core/ |
Test workspace entities for XML requests with cookie authentication. | |||
WorkspaceXmlAnonTest | class |
Drupal\ |
core/ |
Test workspace entities for unauthenticated XML requests. | |||
WorkspaceViewTest | class |
Drupal\ |
core/ |
Tests permission controls on workspaces. | |||
WorkspaceViewBuilder | class |
Drupal\ |
core/ |
Provides a Workspace view builder. | |||
WorkspaceToolbarIntegrationTest | class |
Drupal\ |
core/ |
Tests workspace settings stray integration. | |||
WorkspaceTestUtilities | trait |
Drupal\ |
core/ |
Utility methods for use in BrowserTestBase tests. | 1 | ||
WorkspaceTestTrait | trait |
Drupal\ |
core/ |
A trait with common workspaces testing functionality. | 1 | ||
WorkspaceTest | class |
Drupal\ |
core/ |
Test the workspace entity. | |||
WorkspaceTest | class |
Drupal\ |
core/ |
JSON:API integration test for the "Workspace" content entity type. | |||
WorkspaceSwitcherTest | class |
Drupal\ |
core/ |
Tests workspace switching functionality. | |||
WorkspaceSwitcherForm | class |
Drupal\ |
core/ |
Provides a form that activates a different workspace. | |||
WorkspacesUninstallTest | class |
Drupal\ |
core/ |
Tests uninstalling the Workspaces module. | |||
WorkspacesServiceProvider | class |
Drupal\ |
core/ |
Defines a service provider for the Workspaces module. | |||
WorkspacesLayoutBuilderIntegrationTest | class |
Drupal\ |
core/ |
Tests for layout editing in workspaces. | |||
WorkspacesContentModerationStateTest | class |
Drupal\ |
core/ |
Tests that Workspaces and Content Moderation work together properly. |