Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
class | Drupal\Component\Utility | core/ |
Provides helpers to ensure emails are compliant with RFCs. | 2 | ||||
class | Drupal\Core\Annotation | core/ |
Defines a Mail annotation object. | |||||
MailCaptureTest | class | Drupal\FunctionalTests | core/ |
Tests the SimpleTest email capturing logic, the assertMail assertion and the drupalGetMails function. | ||||
MailFormatHelper | class | Drupal\Core\Mail | core/ |
Defines a class containing utility methods for formatting mail messages. | 6 | |||
MailFormatHelperTest | class | Drupal\Tests\Core\Mail | core/ |
@coversDefaultClass \Drupal\Core\Mail\MailFormatHelper @group Mail | ||||
MailHandler | class | Drupal\contact | core/ |
Provides a class for handling assembly and dispatch of contact mail messages. | 1 | 2 | ||
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/ |
@coversDefaultClass \Drupal\contact\MailHandler @group contact | ||||
MailInterface | interface | Drupal\Core\Mail | core/ |
Defines an interface for pluggable mail back-ends. | 3 | 3 | ||
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/ |
@coversDefaultClass \Drupal\Core\Mail\MailManager @group Mail | ||||
MailTest | class | Drupal\Tests\Component\Utility | core/ |
Test mail helpers implemented in Mail component. | ||||
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. | 1 | 3 | ||
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" ( | 4 | 2 | ||
MainContentRenderersPass | class | Drupal\Core\Render\MainContent | core/ |
Adds main_content_renderers parameter to the container. | 1 | |||
MainContentViewSubscriber | class | Drupal\Core\EventSubscriber | core/ |
View subscriber rendering main content render arrays into responses. | 31 | 2 | ||
MaintenanceMode | class | Drupal\Core\Site | core/ |
Provides the default implementation of the maintenance mode service. | 2 | |||
MaintenanceModeInterface | interface | Drupal\Core\Site | core/ |
Defines the interface for the maintenance mode service. | 1 | 2 | ||
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. | ||||
MakeLayoutUntranslatableUpdatePathTestBase | abstract class | Drupal\Tests\layout_builder\Functional\Update\Translatability | core/ |
Base class for upgrade path for translatable layouts. | 2 | |||
MakeUniqueBase | abstract class | Drupal\migrate\Plugin\migrate\process | core/ |
This plugin ensures the source value is unique. | 2 | |||
MakeUniqueEntityField | class | Drupal\migrate\Plugin\migrate\process | core/ |
Ensures the source value is made unique against an entity field. | 1 | 1 | ||
MakeUniqueEntityFieldTest | class | Drupal\Tests\migrate\Unit\process | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\MakeUniqueEntityField @group migrate | ||||
ManagedFile | class | Drupal\file\Element | core/ |
Provides an AJAX/progress aware widget for uploading and saving a file. | 1 | |||
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. | ||||
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. | ||||
ManyPlaceholderTest | class | Drupal\Tests\big_pipe\Unit\Render | core/ |
@coversDefaultClass \Drupal\big_pipe\Render\BigPipe @group big_pipe | ||||
ManyToOne | class | Drupal\views\Plugin\views\filter | core/ |
Complex filter to handle filtering for many to one relationships, such as terms (many terms per node) or roles (many roles per user). | 4 | 4 | ||
ManyToOne | class | Drupal\views\Plugin\views\argument | core/ |
An argument handler for use in fields that have a many to one relationship with the table(s) to the left. This adds a bunch of options that are reasonably common with this type of relationship. Definition terms: | 2 | 2 | ||
ManyToOneHelper | class | Drupal\views | core/ |
This many to one helper object is used on both arguments and filters. | 3 | |||
Map | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The "map" data type. | 1 | 1 | ||
MapBaseFieldTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests map base fields. | ||||
MapDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining maps. | 6 | 1 | ||
MapDataNormalizerTest | class | Drupal\Tests\serialization\Kernel | core/ |
@group typedData | ||||
MapFieldItemList | class | Drupal\Core\Field | core/ |
Defines a item list class for map fields. | ||||
MapItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'map' entity field type. |
Pagination
- Previous page
- Page 100
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.