Classes, traits, and interfaces - 10.3.x - 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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
OptionsFieldUIAllowedValuesTest | class | Drupal\Tests\options\FunctionalJavascript | core/ |
Tests the Options field allowed values UI functionality. | ||||
OptionsFieldUITest | class | Drupal\Tests\options\FunctionalJavascript | core/ |
Tests the Options field UI functionality. | ||||
OptionsFieldUITest | class | Drupal\Tests\options\Functional | core/ |
Tests the Options field UI functionality. | ||||
OptionsFieldUnitTestBase | abstract class | Drupal\Tests\options\Kernel | core/ |
Base class for Options module integration tests. | 4 | |||
OptionsFloatFieldImportTest | class | Drupal\Tests\options\Functional | core/ |
Tests option fields can be updated and created through config synchronization. | ||||
OptionsFormattersTest | class | Drupal\Tests\options\Kernel | core/ |
Tests the Options field type formatters. | ||||
OptionsKeyFormatter | class | Drupal\options\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'list_key' formatter. | ||||
OptionsListArgumentTest | class | Drupal\Tests\options\Kernel\Views | core/ |
Tests options list argument for views. | ||||
OptionsListFilterTest | class | Drupal\Tests\options\Kernel\Views | core/ |
Tests options list filter for views. | ||||
OptionsProviderInterface | interface | Drupal\Core\TypedData | core/ |
Interface for retrieving all possible and settable values. | 5 | 9 | ||
OptionsRequestSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Handles options requests. | 1 | 2 | ||
OptionsRequestSubscriberTest | class | Drupal\Tests\Core\EventSubscriber | core/ |
@coversDefaultClass \Drupal\Core\EventSubscriber\OptionsRequestSubscriber[[api-linebreak]] @group EventSubscriber | ||||
OptionsSelectDynamicValuesTest | class | Drupal\Tests\options\Functional | core/ |
Tests an options select with a dynamic allowed values function. | ||||
OptionsSelectWidget | class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'options_select' widget. | 1 | 1 | ||
OptionsTestBase | abstract class | Drupal\Tests\options\Kernel\Views | core/ |
Base class for options views tests. | 3 | |||
OptionsWidgetBase | abstract class | Drupal\Core\Field\Plugin\Field\FieldWidget | core/ |
Base class for the 'options_*' widgets. | 2 | |||
OptionsWidgetsTest | class | Drupal\Tests\options\Functional | core/ |
Tests the Options widgets. | ||||
OptionWidgetsField | class | Drupal\options\Plugin\migrate\field\d6 | core/ |
MigrateField Plugin for Drupal 6 options fields. | ||||
Orange | class | Drupal\plugin_test\Plugin\plugin_test\fruit | core/ |
Plugin annotation @Plugin( id = "orange", label = "Orange", color = "orange" ) | ||||
OrderByTest | class | Drupal\Tests\Core\Database | core/ |
Tests the orderBy() method of select queries. | ||||
OutboundPathProcessorInterface | interface | Drupal\Core\PathProcessor | core/ |
Defines an interface for classes that process the outbound path. | 9 | 10 | ||
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. | ||||
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. | 14 | |||
OverridesSectionStorageInterface | interface | Drupal\layout_builder | core/ |
Defines an interface for an object that stores layout sections for overrides. | 1 | 6 | ||
OverridesSectionStorageTest | class | Drupal\Tests\layout_builder\Unit | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage[[api-linebreak]] | ||||
OverridesSectionStorageTest | class | Drupal\Tests\layout_builder\Kernel | core/ |
@coversDefaultClass \Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage[[api-linebreak]] | ||||
Overview | class | Drupal\forum\Form | core/ |
Provides forum overview form for the forum vocabulary. | 1 | |||
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 | 1 | ||
PackageGenerator | class | Drupal\Composer\Generator | composer/ |
Generates metapackages. | 2 | |||
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 | |||
PageCache | class | Drupal\page_cache\StackMiddleware | core/ |
Executes the page caching before the main kernel takes over the request. | 2 | |||
PageCacheAcceptHeaderController | class | Drupal\system_test\Controller | core/ |
Defines a controller to respond the page cache accept header test. | ||||
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. | 5 | 5 | ||
PageCacheTest | class | Drupal\Tests\page_cache\Functional | core/ |
Enables the page cache and tests it with various HTTP requests. | ||||
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. | 3 | |||
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. |
Pagination
- Previous page
- Page 133
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.