Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
Primary tabs
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 |
---|---|---|---|---|---|---|---|---|
LuhnValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates a PAN using the LUHN Algorithm. | ||||
MacAddress | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates that a value is a valid MAC address. | ||||
MacAddressValidator | class | Symfony\Component\Validator\Constraints | vendor/ |
Validates whether a value is a valid MAC address. | ||||
MachineName | class | Drupal\views\Plugin\views\field | core/ |
Field handler which allows to show machine name content as human name. | ||||
MachineName | class | Drupal\Core\Render\Element | core/ |
Provides a machine name render element. | ||||
MachineName | class | Drupal\migrate\Plugin\migrate\process | core/ |
Creates a machine name. | ||||
MacroNode | class | Twig\Node | vendor/ |
Represents a macro node. | 3 | |||
MacroReferenceExpression | class | Twig\Node\Expression | vendor/ |
Represents a macro call node. | 3 | |||
MacroTokenParser | final class | Twig\TokenParser | vendor/ |
Defines a macro. | 1 | |||
MagentoInstaller | class | Composer\Installers | vendor/ |
|||||
MagicCallPatch | class | Prophecy\Doubler\ClassPatch | vendor/ |
Discover Magical API using "@method" PHPDoc format. | ||||
MagicConst | abstract class | PhpParser\Node\Scalar | vendor/ |
9 | 10 | |||
class | Drupal\Core\Mail\Attribute | core/ |
Defines a Mail attribute for plugin discovery. | 4 | ||||
class | Drupal\Core\Annotation | core/ |
Defines a Mail annotation object. | |||||
MailboxHeader | final class | Symfony\Component\Mime\Header | vendor/ |
A Mailbox MIME Header for something like Sender (one named address). | 2 | |||
MailboxListHeader | final class | Symfony\Component\Mime\Header | vendor/ |
A Mailbox list MIME Header for something like From, To, Cc, and Bcc (one or more named addresses). | 2 | |||
Mailer | final class | Symfony\Component\Mailer | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
MailerInterface | interface | Symfony\Component\Mailer | vendor/ |
Interface for mailers able to send emails synchronously and/or asynchronously. | 1 | 1 | ||
MailerTestCommand | final class | Symfony\Component\Mailer\Command | vendor/ |
A console command to test Mailer transports. | ||||
MailFormatHelper | class | Drupal\Core\Mail | core/ |
Defines a class containing utility methods for formatting mail messages. | 2 | |||
MailHandler | class | Drupal\contact | core/ |
Provides a class for handling assembly and dispatch of contact mail messages. | 2 | |||
MailHandlerException | class | Drupal\contact | core/ |
Exception thrown by MailHandler when unable to determine message recipient. | ||||
MailHandlerInterface | interface | Drupal\contact | core/ |
Provides an interface for assembly and dispatch of contact mail messages. | 1 | |||
MailInterface | interface | Drupal\Core\Mail | core/ |
Defines an interface for pluggable mail back-ends. | 3 | 3 | 1 | |
MailManager | class | Drupal\Core\Mail | core/ |
Provides a Mail plugin manager. | ||||
MailManagerInterface | interface | Drupal\Core\Mail | core/ |
Provides an interface for sending mail. | 1 | 2 | ||
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 | ||
MainContentRendererInterface | interface | Drupal\Core\Render\MainContent | core/ |
The interface for "main content" ( | 3 | 1 | ||
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. | 7 | |||
MaintenanceMode | class | Drupal\Core\Site | core/ |
Provides the default implementation of the maintenance mode service. | ||||
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\user\EventSubscriber | core/ |
Maintenance mode subscriber to log out users. | 2 | |||
MaintenanceModeSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Maintenance mode subscriber for controller requests. | ||||
MajimaInstaller | class | Composer\Installers | vendor/ |
Plugin/theme installer for majima @author David Neustadt | ||||
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. | ||||
MakoInstaller | class | Composer\Installers | vendor/ |
|||||
MalformedUriException | class | GuzzleHttp\Psr7\Exception | vendor/ |
Exception thrown if a URI cannot be parsed because it's malformed. | 1 | |||
ManagedFile | class | Drupal\file\Element | core/ |
Provides an AJAX/progress aware widget for uploading and saving a file. | 1 | |||
ManagedStorage | final class | Drupal\Core\Config | core/ |
The managed storage defers all the storage method calls to the manager. | ||||
ManageGitIgnore | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Manage the .gitignore file. | ||||
ManageOptions | class | Drupal\Composer\Plugin\Scaffold | composer/ |
Per-project options from the 'extras' section of the composer.json file. | ||||
Manifest | class | PharIo\Manifest | vendor/ |
1 | ||||
ManifestDocument | class | PharIo\Manifest | vendor/ |
|||||
ManifestDocumentException | class | PharIo\Manifest | vendor/ |
|||||
ManifestDocumentLoadingException | class | PharIo\Manifest | vendor/ |
|||||
ManifestDocumentMapper | class | PharIo\Manifest | vendor/ |