Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x

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/symfony/validator/Constraints/LuhnValidator.php Validates a PAN using the LUHN Algorithm.
MacAddress class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/MacAddress.php Validates that a value is a valid MAC address.
MacAddressValidator class Symfony\Component\Validator\Constraints vendor/symfony/validator/Constraints/MacAddressValidator.php Validates whether a value is a valid MAC address.
MachineName class Drupal\views\Plugin\views\field core/modules/views/src/Plugin/views/field/MachineName.php Field handler which allows to show machine name content as human name.
MachineName class Drupal\Core\Render\Element core/lib/Drupal/Core/Render/Element/MachineName.php Provides a machine name render element.
MachineName class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/MachineName.php Creates a machine name.
MacroNode class Twig\Node vendor/twig/twig/src/Node/MacroNode.php Represents a macro node. 3
MacroReferenceExpression class Twig\Node\Expression vendor/twig/twig/src/Node/Expression/MacroReferenceExpression.php Represents a macro call node. 3
MacroTokenParser final class Twig\TokenParser vendor/twig/twig/src/TokenParser/MacroTokenParser.php Defines a macro. 1
MagentoInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php
MagicCallPatch class Prophecy\Doubler\ClassPatch vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/MagicCallPatch.php Discover Magical API using "@method" PHPDoc format.
MagicConst abstract class PhpParser\Node\Scalar vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php 9 10
Mail class Drupal\Core\Mail\Attribute core/lib/Drupal/Core/Mail/Attribute/Mail.php Defines a Mail attribute for plugin discovery. 4
Mail class Drupal\Core\Annotation core/lib/Drupal/Core/Annotation/Mail.php Defines a Mail annotation object.
MailboxHeader final class Symfony\Component\Mime\Header vendor/symfony/mime/Header/MailboxHeader.php A Mailbox MIME Header for something like Sender (one named address). 2
MailboxListHeader final class Symfony\Component\Mime\Header vendor/symfony/mime/Header/MailboxListHeader.php 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/symfony/mailer/Mailer.php @author Fabien Potencier <fabien@symfony.com> 1
MailerInterface interface Symfony\Component\Mailer vendor/symfony/mailer/MailerInterface.php Interface for mailers able to send emails synchronously and/or asynchronously. 1 1
MailerTestCommand final class Symfony\Component\Mailer\Command vendor/symfony/mailer/Command/MailerTestCommand.php A console command to test Mailer transports.
MailFormatHelper class Drupal\Core\Mail core/lib/Drupal/Core/Mail/MailFormatHelper.php Defines a class containing utility methods for formatting mail messages. 2
MailHandler class Drupal\contact core/modules/contact/src/MailHandler.php Provides a class for handling assembly and dispatch of contact mail messages. 2
MailHandlerException class Drupal\contact core/modules/contact/src/MailHandlerException.php Exception thrown by MailHandler when unable to determine message recipient.
MailHandlerInterface interface Drupal\contact core/modules/contact/src/MailHandlerInterface.php Provides an interface for assembly and dispatch of contact mail messages. 1
MailInterface interface Drupal\Core\Mail core/lib/Drupal/Core/Mail/MailInterface.php Defines an interface for pluggable mail back-ends. 3 3 1
MailManager class Drupal\Core\Mail core/lib/Drupal/Core/Mail/MailManager.php Provides a Mail plugin manager.
MailManagerInterface interface Drupal\Core\Mail core/lib/Drupal/Core/Mail/MailManagerInterface.php Provides an interface for sending mail. 1 2
MailToFormatter class Drupal\Core\Field\Plugin\Field\FieldFormatter core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/MailToFormatter.php Plugin implementation of the 'email_mailto' formatter.
MainContentBlockPluginInterface interface Drupal\Core\Block core/lib/Drupal/Core/Block/MainContentBlockPluginInterface.php The interface for "main page content" blocks. 1 3
MainContentRendererInterface interface Drupal\Core\Render\MainContent core/lib/Drupal/Core/Render/MainContent/MainContentRendererInterface.php The interface for "main content" ( 3 1
MainContentRenderersPass class Drupal\Core\Render\MainContent core/lib/Drupal/Core/Render/MainContent/MainContentRenderersPass.php Adds main_content_renderers parameter to the container. 1
MainContentViewSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php View subscriber rendering main content render arrays into responses. 7
MaintenanceMode class Drupal\Core\Site core/lib/Drupal/Core/Site/MaintenanceMode.php Provides the default implementation of the maintenance mode service.
MaintenanceModeEvents final class Drupal\Core\Site core/lib/Drupal/Core/Site/MaintenanceModeEvents.php Defines events for maintenance mode. 3
MaintenanceModeInterface interface Drupal\Core\Site core/lib/Drupal/Core/Site/MaintenanceModeInterface.php Defines the interface for the maintenance mode service. 1 3
MaintenanceModeSubscriber class Drupal\user\EventSubscriber core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php Maintenance mode subscriber to log out users. 2
MaintenanceModeSubscriber class Drupal\Core\EventSubscriber core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php Maintenance mode subscriber for controller requests.
MajimaInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php Plugin/theme installer for majima @author David Neustadt
MakeUniqueBase abstract class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/MakeUniqueBase.php This plugin ensures the source value is unique. 1
MakeUniqueEntityField class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/MakeUniqueEntityField.php Ensures the source value is made unique against an entity field.
MakoInstaller class Composer\Installers vendor/composer/installers/src/Composer/Installers/MakoInstaller.php
MalformedUriException class GuzzleHttp\Psr7\Exception vendor/guzzlehttp/psr7/src/Exception/MalformedUriException.php Exception thrown if a URI cannot be parsed because it's malformed. 1
ManagedFile class Drupal\file\Element core/modules/file/src/Element/ManagedFile.php Provides an AJAX/progress aware widget for uploading and saving a file. 1
ManagedStorage final class Drupal\Core\Config core/lib/Drupal/Core/Config/ManagedStorage.php The managed storage defers all the storage method calls to the manager.
ManageGitIgnore class Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/ManageGitIgnore.php Manage the .gitignore file.
ManageOptions class Drupal\Composer\Plugin\Scaffold composer/Plugin/Scaffold/ManageOptions.php Per-project options from the 'extras' section of the composer.json file.
Manifest class PharIo\Manifest vendor/phar-io/manifest/src/values/Manifest.php 1
ManifestDocument class PharIo\Manifest vendor/phar-io/manifest/src/xml/ManifestDocument.php
ManifestDocumentException class PharIo\Manifest vendor/phar-io/manifest/src/exceptions/ManifestDocumentException.php
ManifestDocumentLoadingException class PharIo\Manifest vendor/phar-io/manifest/src/exceptions/ManifestDocumentLoadingException.php
ManifestDocumentMapper class PharIo\Manifest vendor/phar-io/manifest/src/ManifestDocumentMapper.php

Pagination

  • First page
  • Previous page
  • …
  • Page 110
  • Page 111
  • Page 112
  • Page 113
  • Page 114
  • Page 115
  • Page 116
  • Page 117
  • Page 118
  • …
  • Next page
  • Last page
RSS feed
Powered by Drupal