Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| WorkspaceSwitchEvent | class | Drupal\workspaces\Event | core/ |
Defines the workspace switch event. | 3 | |||
| WorkspaceSwitchSubscriber | class | Drupal\workspaces\EventSubscriber | core/ |
Provides a event subscriber for reacting to workspace activation. | ||||
| WorkspaceTest | class | Drupal\Tests\workspaces\Functional | core/ |
Test the workspace entity. | ||||
| WorkspaceTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Workspace" content entity type. | ||||
| WorkspaceTestTrait | trait | Drupal\Tests\workspaces\Kernel | core/ |
A trait with common workspaces testing functionality. | 1 | |||
| WorkspaceTestUtilities | trait | Drupal\Tests\workspaces\Functional | core/ |
Utility methods for use in BrowserTestBase tests. | 2 | |||
| WorkspaceToolbarIntegrationTest | class | Drupal\Tests\workspaces_ui\FunctionalJavascript | core/ |
Tests workspace settings stray integration. | ||||
| WorkspaceTracker | class | Drupal\workspaces | core/ |
Provides a class for CRUD operations on workspace associations. | 4 | 2 | ||
| WorkspaceTrackerInterface | interface | Drupal\workspaces | core/ |
Defines an interface for the workspace tracker service. | 1 | 6 | ||
| WorkspaceTrackerTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests workspace tracker. | ||||
| WorkspaceViewBuilder | class | Drupal\workspaces_ui | core/ |
Provides a Workspace view builder. | 1 | |||
| WorkspaceViewsBulkFormTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests the views bulk form in a workspace. | ||||
| WorkspaceViewsIntegrationTest | class | Drupal\Tests\workspaces\Kernel | core/ |
Tests the views integration for workspaces. | ||||
| WorkspaceViewTest | class | Drupal\Tests\workspaces\Functional | core/ |
Tests permission controls on workspaces. | ||||
| WorkspaceXmlAnonTest | class | Drupal\Tests\workspaces\Functional\Rest | core/ |
Test workspace entities for unauthenticated XML requests. | ||||
| WorkspaceXmlBasicAuthTest | class | Drupal\Tests\workspaces\Functional\Rest | core/ |
Test workspace entities for XML requests with cookie authentication. | ||||
| WorkspaceXmlCookieTest | class | Drupal\Tests\workspaces\Functional\Rest | core/ |
Test workspace entities for XML requests. | ||||
| WritableFileSystemValidator | class | Drupal\package_manager\Validator | core/ |
Checks that the file system is writable. | 2 | |||
| WritableFileSystemValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Unit tests the file system permissions validator. | ||||
| WriteSafeSessionHandler | class | Drupal\Core\Session | core/ |
Wraps the session handler to prevent writes when not necessary or allowed. | 1 | 2 | ||
| WriteSafeSessionHandlerInterface | interface | Drupal\Core\Session | core/ |
Provides an interface for session handlers where writing can be disabled. | 1 | |||
| WriteSafeSessionHandlerTest | class | Drupal\Tests\Core\Session | core/ |
Tests \Drupal\Core\Session\WriteSafeSessionHandler. | ||||
| XdebugRequestTrait | trait | Drupal\Tests | core/ |
Trait for testing with Xdebug cookies extraction from request. | 1 | |||
| XdebugRequestTraitTest | class | Drupal\Tests\Core\Test | core/ |
Provides tests for the Xdebug request trait. | ||||
| XmlEncoder | class | Drupal\serialization\Encoder | core/ |
Adds XML support for serializer. | 2 | 2 | ||
| XmlEncoderTest | class | Drupal\Tests\serialization\Unit\Encoder | core/ |
Tests Drupal\serialization\Encoder\XmlEncoder. | ||||
| XmlEntityNormalizationQuirksTrait | trait | Drupal\Tests\rest\Functional\EntityResource | core/ |
Trait for EntityResourceTestBase subclasses testing $format='xml'. | 141 | |||
| XmlNormalizationQuirksTrait | trait | Drupal\Tests\rest\Functional | core/ |
Trait for ResourceTestBase subclasses testing $format='xml'. | 1 | |||
| Xss | class | Drupal\Component\Utility | core/ |
Provides helper to filter for cross-site scripting. | 1 | 52 | ||
| XssTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests the Xss vulnerability. | ||||
| XssTest | class | Drupal\Tests\Component\Utility | core/ |
XSS Filtering tests. | ||||
| XssUnitTest | class | Drupal\KernelTests\Core\Common | core/ |
Tests XSS filtering. | ||||
| XyzMissingTargetAlter | class | Drupal\xyz_hook_order_test\Hook | core/ |
This class contains attributes to reorder or remove alter implementations. | ||||
| XyzMissingTargetHooks | class | Drupal\xyz_hook_order_test\Hook | core/ |
This class contains attributes to reorder or remove hook implementations. | ||||
| Yaml | class | Drupal\Component\Serialization | core/ |
Provides a YAML serialization implementation using symfony/yaml. | 32 | 2 | ||
| YamlCacheCollector | class | Drupal\Core\Utility | core/ |
Caches YAML parsing in a cache collector. | 4 | 3 | ||
| YamlCacheCollectorDiscovery | class | Drupal\Core\Discovery | core/ |
Provides discovery for YAML files within a given set of directories. | 1 | |||
| YamlCacheCollectorTest | class | Drupal\Tests\Core\Utility | core/ |
Tests Drupal\Core\Cache\CacheCollector. | ||||
| YamlDirectoryDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Allows multiple YAML files per directory to define plugin definitions. | 2 | |||
| YamlDirectoryDiscovery | class | Drupal\Component\Discovery | core/ |
Discovers multiple YAML files in a set of directories. | 1 | 6 | ||
| YamlDirectoryDiscoveryTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
Tests Drupal\Core\Plugin\Discovery\YamlDirectoryDiscovery. | ||||
| YamlDirectoryDiscoveryTest | class | Drupal\Tests\Component\Discovery | core/ |
YamlDirectoryDiscoveryTest component unit tests. | ||||
| YamlDiscovery | class | Drupal\Core\Discovery | core/ |
Provides discovery for YAML files within a given set of directories. | 1 | 6 | ||
| YamlDiscovery | class | Drupal\Core\Plugin\Discovery | core/ |
Allows YAML files to define plugin definitions. | 3 | 11 | ||
| YamlDiscovery | class | Drupal\Component\Discovery | core/ |
Provides discovery for YAML files within a given set of directories. | 1 | 4 | ||
| YamlDiscoveryDecorator | class | Drupal\Core\Plugin\Discovery | core/ |
Enables YAML discovery for plugin definitions. | 4 | |||
| YamlDiscoveryDecoratorTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
YamlDiscoveryDecorator unit tests. | ||||
| YamlDiscoveryTest | class | Drupal\Tests\Core\Plugin\Discovery | core/ |
Tests Drupal\Core\Plugin\Discovery\YamlDiscovery. | ||||
| YamlDiscoveryTest | class | Drupal\Tests\Component\Discovery | core/ |
YamlDiscovery component unit tests. | ||||
| YamlDiscoveryTest | class | Drupal\Tests\Core\Discovery | core/ |
YamlDiscovery component unit tests. |
Pagination
- Previous page
- Page 225
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.