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 |
|---|---|---|---|---|---|---|---|---|
| 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 by config synchronization. | ||||
| OptionsFormattersTest | class | Drupal\Tests\options\Kernel | core/ |
Tests the Options field type formatters. | ||||
| OptionsHooks | class | Drupal\options\Hook | core/ |
Hook implementations for options. | ||||
| 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/ |
Tests Drupal\Core\EventSubscriber\OptionsRequestSubscriber. | ||||
| 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 | |||
| OptionsTestHooks | class | Drupal\options_test\Hook | core/ |
Hook implementations for options_test. | ||||
| OptionsViewsHooks | class | Drupal\options\Hook | core/ |
Hook implementations for options. | ||||
| 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" ) | ||||
| OrderAfter | class | Drupal\Core\Hook\Order | core/ |
Set this implementation to be after others. | 9 | |||
| OrderBefore | class | Drupal\Core\Hook\Order | core/ |
Set this implementation to be before others. | 3 | |||
| OrderByTest | class | Drupal\Tests\Core\Database | core/ |
Tests the orderBy() method of select queries. | ||||
| OrderInterface | interface | Drupal\Core\Hook\Order | core/ |
Interface for order specifiers used in hook attributes. | 1 | 2 | ||
| OrderOperation | abstract class | Drupal\Core\Hook\OrderOperation | core/ |
Base class for order operations. | 2 | 5 | ||
| OriginatorSubscriber | class | Drupal\Core\Mailer\EventSubscriber | core/ |
Message subscriber which sets the from and sender headers. | 1 | |||
| OriginatorSubscriberTest | class | Drupal\Tests\mailer\Kernel | core/ |
Tests default originator subscriber. | ||||
| OtherModuleInstalledHooks | class | Drupal\respond_install_uninstall_hook_test\Hook | core/ |
Hook implementations for respond_install_uninstall_hook_test. | ||||
| OtherModuleUninstalledHooks | class | Drupal\respond_install_uninstall_hook_test\Hook | core/ |
Hook implementations for respond_install_uninstall_hook_test. | ||||
| 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 | 6 | ||
| 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 |
Pagination
- Previous page
- Page 146
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.