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 |
|---|---|---|---|---|---|---|---|---|
| MailerCaptureTestForm | class | Drupal\mailer_capture_test\Form | core/ |
Mailer capture test form. | 1 | |||
| MailerCaptureTrait | trait | Drupal\Core\Test | core/ |
Provides methods for testing emails sent during test runs. | 1 | |||
| MailerDsnConfigValidationTest | class | Drupal\KernelTests\Core\Config | core/ |
Tests validation of mailer dsn config. | ||||
| MailerHooks | class | Drupal\mailer\Hook | core/ |
Hook implementations for mailer. | ||||
| MailFormatHelper | class | Drupal\Core\Mail | core/ |
Defines a class containing utility methods for formatting mail messages. | 8 | |||
| MailFormatHelperTest | class | Drupal\Tests\Core\Mail | core/ |
Tests Drupal\Core\Mail\MailFormatHelper. | ||||
| MailHandler | class | Drupal\contact | core/ |
Provides a class for handling assembly and dispatch of contact mail messages. | 1 | 2 | ||
| MailHandler | class | Drupal\update | core/ |
A service to handle assembly and dispatch of Update Status mail messages. | 1 | |||
| MailHandlerException | class | Drupal\contact | core/ |
Exception thrown by MailHandler when unable to determine message recipient. | 1 | |||
| MailHandlerInterface | interface | Drupal\contact | core/ |
Provides an interface for assembly and dispatch of contact mail messages. | 1 | |||
| MailHandlerTest | class | Drupal\Tests\contact\Unit | core/ |
Tests Drupal\contact\MailHandler. | ||||
| MailHtmlTestHooks | class | Drupal\mail_html_test\Hook | core/ |
Hook implementations for mail_html_test. | ||||
| MailInterface | interface | Drupal\Core\Mail | core/ |
Defines an interface for pluggable mail back-ends. | 4 | 4 | 1 | |
| MailManager | class | Drupal\Core\Mail | core/ |
Provides a Mail plugin manager. | 1 | 1 | 2 | |
| MailManagerInterface | interface | Drupal\Core\Mail | core/ |
Provides an interface for sending mail. | 1 | 2 | ||
| MailManagerTest | class | Drupal\Tests\Core\Mail | core/ |
Tests Drupal\Core\Mail\MailManager. | ||||
| MailTest | class | Drupal\Tests\system\Kernel\Mail | core/ |
Performs tests on the pluggable mailing framework. | ||||
| MailToFormatter | class | Drupal\Core\Field\Plugin\Field\FieldFormatter | core/ |
Plugin implementation of the 'email_mailto' formatter. | ||||
| MainContentBlockPluginInterface | interface | Drupal\Core\Block | core/ |
The interface for "main page content" blocks. | 2 | 5 | ||
| MainContentFallbackTest | class | Drupal\Tests\system\Functional\System | core/ |
Test SimplePageVariant main content rendering fallback page display variant. | ||||
| MainContentRendererInterface | interface | Drupal\Core\Render\MainContent | core/ |
The interface for "main content" ( | 5 | 4 | ||
| MainContentRenderersPass | class | Drupal\Core\Render\MainContent | core/ |
Adds main_content_renderers parameter to the container. | ||||
| MainContentViewSubscriber | class | Drupal\Core\EventSubscriber | core/ |
View subscriber rendering main content render arrays into responses. | 28 | 2 | ||
| MaintenanceMode | class | Drupal\Core\Site | core/ |
Provides the default implementation of the maintenance mode service. | 2 | |||
| MaintenanceModeEvents | final class | Drupal\Core\Site | core/ |
Defines events for maintenance mode. | 3 | |||
| MaintenanceModeInterface | interface | Drupal\Core\Site | core/ |
Defines the interface for the maintenance mode service. | 1 | 3 | ||
| MaintenanceModeSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Maintenance mode subscriber for controller requests. | 2 | |||
| MaintenanceModeSubscriber | class | Drupal\user\EventSubscriber | core/ |
Maintenance mode subscriber to log out users. | 2 | |||
| MaintenanceThemeTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests themes and base themes are correctly loaded. | ||||
| MaintenanceThemeUpdateRegistryTest | class | Drupal\Tests\system\Functional\Theme | core/ |
Ensures theme update functions are registered for maintenance themes. | ||||
| MakeUniqueBase | abstract class | Drupal\migrate\Plugin\migrate\process | core/ |
This plugin ensures the source value is unique. | 1 | |||
| MakeUniqueEntityField | class | Drupal\migrate\Plugin\migrate\process | core/ |
Ensures the source value is made unique against an entity field. | 1 | |||
| MakeUniqueEntityFieldTest | class | Drupal\Tests\migrate\Unit\process | core/ |
Tests Drupal\migrate\Plugin\migrate\process\MakeUniqueEntityField. | ||||
| ManagedFile | class | Drupal\file\Element | core/ |
Provides an AJAX/progress aware widget for uploading and saving a file. | 2 | |||
| ManagedFileTest | class | Drupal\Tests\file\Kernel | core/ |
Managed file element test. | ||||
| ManageDisplayTest | class | Drupal\Tests\field_ui\FunctionalJavascript | core/ |
Tests the Field UI "Manage display" and "Manage form display" screens. | ||||
| ManageDisplayTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage display" and "Manage form display" screens. | ||||
| ManagedStorage | final class | Drupal\Core\Config | core/ |
The managed storage defers all the storage method calls to the manager. | 1 | 2 | ||
| ManagedStorageTest | class | Drupal\KernelTests\Core\Config\Storage | core/ |
Tests ManagedStorage operations. | ||||
| ManageFieldsFunctionalTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | ||||
| ManageFieldsFunctionalTestBase | abstract class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | 3 | |||
| ManageFieldsLifecycleTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | ||||
| ManageFieldsMultipleTypesTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Field UI "Manage fields" screen. | ||||
| ManageFieldsTest | class | Drupal\Tests\field_ui\FunctionalJavascript | core/ |
Tests the Field UI "Manage Fields" screens. | ||||
| ManageFieldsTest | class | Drupal\Tests\field_ui\Functional | core/ |
Tests the Manage Display page of a fieldable entity type. | ||||
| ManageGitIgnore | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Manage the .gitignore file. | ||||
| ManageGitIgnoreTest | class | Drupal\Tests\Composer\Plugin\Scaffold\Functional | core/ |
Tests to see whether .gitignore files are correctly managed. | ||||
| ManageOptions | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Per-project options from the 'extras' section of the composer.json file. | ||||
| ManyAssetsLoadOrderTest | class | Drupal\FunctionalTests\Libraries | core/ |
Tests the loading of many weighted assets. | ||||
| ManyAssetsTestController | class | Drupal\many_assets_test\Controller | core/ |
Provides a controller for testing asset loading order. |
Pagination
- Previous page
- Page 119
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.