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 |
|---|---|---|---|---|---|---|---|---|
| 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\Core\Render\Element | core/ |
Provides a render element for the content of an HTML page. | ||||
| Page | class | Drupal\views\Plugin\views\display | core/ |
The plugin that handles a full page. | 4 | |||
| 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. | ||||
| PageDisplayVariant | class | Drupal\Core\Display\Attribute | core/ |
Defines a page display variant attribute object. | 2 | |||
| PageDisplayVariant | class | Drupal\Core\Display\Annotation | core/ |
Defines a page display variant annotation object. | ||||
| PageDisplayVariantSelectionEvent | class | Drupal\Core\Render | core/ |
Event fired when rendering main content, to select a page display variant. | 5 | |||
| PageEditTest | class | Drupal\Tests\block_content\Functional | core/ |
Create a block and test block edit functionality. | ||||
| PageNotFoundTest | class | Drupal\Tests\system\Functional\System | core/ |
Tests page not found functionality, including custom 404 pages. | ||||
| PagePreviewTest | class | Drupal\Tests\node\Functional | core/ |
Tests the node entity preview functionality. | ||||
| Pager | class | Drupal\Core\Render\Element | core/ |
Provides a render element for a pager. | ||||
| Pager | class | Drupal\Core\Pager | core/ |
A value object that represents a pager. | 1 | |||
| PageRenderTest | class | Drupal\Tests\system\Kernel\Common | core/ |
Test page rendering hooks. |
Pagination
- Previous page
- Page 154
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.