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 |
|---|---|---|---|---|---|---|---|---|
| OutboundPathProcessorInterface | interface | Drupal\Core\PathProcessor | core/ |
Defines an interface for classes that process the outbound path. | 8 | 11 | ||
| OutboundRouteProcessorInterface | interface | Drupal\Core\RouteProcessor | core/ |
Defines an interface for classes that process the outbound route. | 3 | 2 | ||
| OutputStrategyInterface | interface | Drupal\Component\Render | core/ |
Provides an output strategy that formats HTML strings for a given context. | 1 | |||
| OverlapWithTopLevelDependenciesTest | class | Drupal\Tests\Composer\Generator | core/ |
Tests DrupalCoreRecommendedBuilder. | ||||
| OverriddenConfigImportTest | class | Drupal\Tests\language\Kernel | core/ |
Tests importing of config with language overrides. | ||||
| OverriddenConfigurationTest | class | Drupal\Tests\settings_tray\FunctionalJavascript | core/ |
Tests handling of configuration overrides. | ||||
| OverrideDisplaysTest | class | Drupal\Tests\views_ui\Functional | core/ |
Tests that displays can be correctly overridden via the user interface. | ||||
| OverrideMenuLinks | final class | Drupal\Core\Menu\Plugin\ConfigAction | core/ |
Overrides static menu links defined in code. | 1 | |||
| OverrideMenuLinksConfigActionTest | final class | Drupal\KernelTests\Core\Menu | core/ |
Tests overriding static menu links with config actions. | ||||
| OverrideSectionsTest | class | Drupal\Tests\layout_builder\Functional\Rest | core/ |
Tests that override layout sections are not exposed via the REST API. | ||||
| OverridesEntityForm | class | Drupal\layout_builder\Form | core/ |
Provides a form containing the Layout Builder UI for overrides. | 1 | |||
| OverridesSectionStorage | class | Drupal\layout_builder\Plugin\SectionStorage | core/ |
Defines the 'overrides' section storage type. | 16 | |||
| OverridesSectionStorageInterface | interface | Drupal\layout_builder | core/ |
Defines an interface for an object that stores layout sections for overrides. | 1 | 7 | ||
| OverridesSectionStorageTest | class | Drupal\Tests\layout_builder\Unit | core/ |
Tests Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage. | ||||
| OverridesSectionStorageTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
Tests Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage. | ||||
| OverviewForm | class | Drupal\migrate_drupal_ui\Form | core/ |
Migrate Upgrade Overview form. | 1 | |||
| OverviewTerms | class | Drupal\taxonomy\Form | core/ |
Provides terms overview form for a taxonomy vocabulary. | 1 | 2 | ||
| OverviewTermsOverride | class | Drupal\taxonomy_overview_override_test\Form | core/ |
Provides an overview form to test overriding it via hook_entity_type_alter. | 1 | |||
| OverwriteExistingPackagesValidator | final class | Drupal\package_manager\Validator | core/ |
Validates that newly installed packages don't overwrite existing directories. | 1 | |||
| OverwriteExistingPackagesValidatorTest | class | Drupal\Tests\package_manager\Kernel | core/ |
Tests Overwrite Existing Packages Validator. | ||||
| PackageGenerator | class | Drupal\Composer\Generator | composer/ |
Generates metapackages. | 2 | |||
| PackageInstallDirectWriteTest | class | Drupal\Tests\package_manager\Build | core/ |
Tests installing packages with direct write mode enabled. | ||||
| PackageInstallSubmoduleTest | class | Drupal\Tests\package_manager\Build | core/ |
Tests installing packages in a stage directory. | ||||
| PackageInstallTest | class | Drupal\Tests\package_manager\Build | core/ |
Tests installing packages in a stage directory. | ||||
| PackageManagerBypassServiceProvider | final class | Drupal\package_manager_bypass | core/ |
Defines services to bypass Package Manager's core functionality. | ||||
| PackageManagerBypassTestTrait | trait | Drupal\Tests\package_manager\Traits | core/ |
Common functions for testing using the package_manager_bypass module. | ||||
| PackageManagerFixtureCreator | final class | core/ |
Creates fixture at 'core/modules/package_manager/tests/fixtures/fake_site'. | |||||
| PackageManagerHooks | class | Drupal\package_manager\Hook | core/ |
Hook implementations for package_manager. | ||||
| PackageManagerKernelTestBase | abstract class | Drupal\Tests\package_manager\Kernel | core/ |
Base class for kernel tests of Package Manager's functionality. | 50 | 8 | ||
| PackageManagerRequirements | class | Drupal\package_manager\Install\Requirements | core/ |
Install time requirements for the package_manager module. | ||||
| PackageManagerRequirementsHooks | class | Drupal\package_manager\Hook | core/ |
Requirements checks for Package Manager. | ||||
| PackageManagerTestBase | abstract class | Drupal\Tests\package_manager\Functional | core/ |
Base class for Package Manager Functional tests. | 2 | |||
| PackageManagerTestValidationServiceProvider | class | Drupal\package_manager_test_validation | core/ |
Modifies container services for testing. | ||||
| PackageManagerUninstallValidator | final class | Drupal\package_manager | core/ |
Prevents any module from being uninstalled if update is in process. | 3 | |||
| PackageManagerUpdateProcessor | final class | Drupal\package_manager | core/ |
Extends the Update Status update processor allow fetching any project. | ||||
| PackageUpdateTest | class | Drupal\Tests\package_manager\Build | core/ |
Tests updating packages in a stage directory. | ||||
| Page | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles a full page. | 4 | |||
| Page | class | Drupal\Core\Render\Element | core/ |
Provides a render element for the content of an HTML page. | ||||
| PageActions | final class | Drupal\navigation\Plugin\TopBarItem | core/ |
Provides the Page Actions basic top bar item. | ||||
| PageAttachmentsHook | final class | Drupal\system\Hook | core/ |
Implements hook_page_attachments() for the system module. | ||||
| PageCache | class | Drupal\page_cache\StackMiddleware | core/ |
Executes the page caching before the main kernel takes over the request. | 1 | 2 | ||
| PageCacheAcceptHeaderController | class | Drupal\system_test\Controller | core/ |
Defines a controller to respond the page cache accept header test. | ||||
| PageCacheHooks | class | Drupal\page_cache\Hook | core/ |
Hook implementations for page_cache. | ||||
| PageCacheLegacyTest | class | Drupal\Tests\page_cache\Unit | core/ |
Tests \Drupal\page_cache\StackMiddleware\PageCache. | ||||
| PageCachePolicyTrait | trait | Drupal\Tests\Traits\Core\Cache | core/ |
Trait for using page caching modules in Kernel tests. | 2 | |||
| PageCacheTagsIntegrationTest | class | Drupal\Tests\page_cache\Functional | core/ |
Enables the page cache and tests its cache tags in various scenarios. | ||||
| PageCacheTagsTestBase | abstract class | Drupal\Tests\system\Functional\Cache | core/ |
Provides helper methods for page cache tags tests. | 7 | 7 | ||
| PageCacheTest | class | Drupal\Tests\page_cache\Functional | core/ |
Enables the page cache and tests it with various HTTP requests. | ||||
| PageContext | class | Drupal\navigation\Plugin\TopBarItem | core/ |
Provides the Page Context top bar item. | 1 | |||
| PageContextTest | class | Drupal\Tests\navigation\Unit | core/ |
Tests the PageContext Top Bar item build output. |
Pagination
- Previous page
- Page 150
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.