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 |
---|---|---|---|---|---|---|---|---|
MenuParentFormSelectorInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for menu selector form elements and menu link options. | 1 | 6 | ||
MenuRouterRebuildSubscriber | class | Drupal\Core\EventSubscriber | core/ |
Rebuilds the default menu links and runs menu-specific code if necessary. | ||||
MenuSettingsConstraint | class | Drupal\menu_ui\Plugin\Validation\Constraint | core/ |
Validation constraint for changing the menu settings in pending revisions. | ||||
MenuSettingsConstraintValidator | class | Drupal\menu_ui\Plugin\Validation\Constraint | core/ |
Constraint validator for changing the menu settings in pending revisions. | ||||
MenuStorage | class | Drupal\system | core/ |
Defines the storage class for menu configuration entities. | 2 | |||
MenuTranslation | class | Drupal\system\Plugin\migrate\source\d7 | core/ |
Drupal 7 i18n menu translation source from database. | ||||
MenuTreeHierarchyConstraint | class | Drupal\menu_link_content\Plugin\Validation\Constraint | core/ |
Validation constraint for changing the menu hierarchy in pending revisions. | ||||
MenuTreeHierarchyConstraintValidator | class | Drupal\menu_link_content\Plugin\Validation\Constraint | core/ |
Constraint validator for changing menu link parents in pending revisions. | ||||
MenuTreeParameters | class | Drupal\Core\Menu | core/ |
Provides a value object to model menu tree parameters. | 10 | |||
MenuTreeStorage | class | Drupal\Core\Menu | core/ |
Provides a menu tree storage using the database. | 1 | 1 | ||
MenuTreeStorageInterface | interface | Drupal\Core\Menu | core/ |
Defines an interface for storing a menu tree containing menu link IDs. | 1 | |||
MenuUiHooks | class | Drupal\menu_ui\Hook | core/ |
Hook implementations for menu_ui. | ||||
MenuUiMenuTreeManipulators | class | Drupal\menu_ui\Menu | core/ |
Provides menu tree manipulators to be used when managing menu links. | 2 | |||
Merge | class | Drupal\sqlite\Driver\Database\sqlite | core/ |
SQLite implementation of \Drupal\Core\Database\Query\Merge. | ||||
Merge | class | Drupal\pgsql\Driver\Database\pgsql | core/ |
PostgreSQL implementation of \Drupal\Core\Database\Query\Merge. | ||||
Merge | class | Drupal\Core\Database\Query | core/ |
General class for an abstracted MERGE query operation. | 3 | 5 | ||
Merge | class | Drupal\mysql\Driver\Database\mysql | core/ |
MySQL implementation of \Drupal\Core\Database\Query\Merge. | ||||
MergeExtensionConfigurationContainerBuilder | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
A container builder preventing using methods that wouldn't have any effect from extensions. | ||||
MergeExtensionConfigurationParameterBag | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
@internal | ||||
MergeExtensionConfigurationPass | class | Symfony\Component\DependencyInjection\Compiler | vendor/ |
Merges extension configs into the container builder. | 1 | 1 | ||
MergeExtensionConfigurationPass | class | Symfony\Component\HttpKernel\DependencyInjection | vendor/ |
Ensures certain extensions are always loaded. | 1 | |||
Merger | final class | PHPUnit\TextUI\Configuration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Message | class | Drupal\Composer\Plugin\ProjectMessage | composer/ |
Determine configuration. | ||||
Message | class | Drupal\contact\Entity | core/ |
Defines the contact message entity. | ||||
Message | final class | GuzzleHttp\Psr7 | vendor/ |
|||||
Message | class | Google\Protobuf\Internal | vendor/ |
Parent class of all proto messages. Users should not instantiate this class or extend this class or its child classes by their own. See the comment of specific functions for more details. | 115 | 2 | ||
Message | class | Symfony\Component\Mime | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | 14 | ||
MessageAction | class | Drupal\Core\Action\Plugin\Action | core/ |
Sends a message to the current user's screen. | ||||
MessageBuilderContext | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
MessageCommand | class | Drupal\Core\Ajax | core/ |
AJAX command for a JavaScript Drupal.message() call. | 4 | |||
MessageConverter | final class | Symfony\Component\Mime | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
MessageDataCollector | final class | Symfony\Component\Mailer\DataCollector | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
MessageEvent | final class | Symfony\Component\Mailer\Event | vendor/ |
Allows the transformation of a Message and the Envelope before the email is sent. | 7 | |||
MessageEvents | class | Symfony\Component\Mailer\Event | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 3 | |||
MessageFactory | final class | OpenTelemetry\SDK\Common\Http\Psr\Message | vendor/ |
|||||
MessageFactoryDiscovery | This will be removed in 2.0. Consider using Psr17FactoryDiscovery. |
final class | Http\Discovery | vendor/ |
Finds a Message Factory. | |||
MessageFactoryInterface | interface | OpenTelemetry\SDK\Common\Http\Psr\Message | vendor/ |
1 | ||||
MessageFactoryResolver | final class | OpenTelemetry\SDK\Common\Adapter\HttpDiscovery | vendor/ |
1 | ||||
MessageForm | class | Drupal\migrate\Form | core/ |
Migrate messages form. | ||||
MessageForm | class | Drupal\contact | core/ |
Form controller for contact message forms. | 1 | |||
MessageFormatter | class | GuzzleHttp | vendor/ |
Formats log messages using variable substitutions for requests, responses, and other transactional data. | ||||
MessageFormatterInterface | interface | GuzzleHttp | vendor/ |
1 | ||||
MessageHandler | class | Symfony\Component\Mailer\Messenger | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | ||||
MessageIDParser | class | Egulias\EmailValidator | vendor/ |
1 | ||||
MessageIDValidation | class | Egulias\EmailValidator\Validation | vendor/ |
1 | ||||
MessageInterface | interface | Drupal\contact | core/ |
Provides an interface defining a contact message entity. | 1 | 1 | ||
MessageInterface | interface | Psr\Http\Message | vendor/ |
HTTP messages consist of requests from a client to a server and responses from a server to a client. This interface defines the methods common to each. | 2 | 6 | ||
MessageListener | class | Symfony\Component\Mailer\EventListener | vendor/ |
Manipulates the headers and the body of a Message. | ||||
MessageLoggerListener | class | Symfony\Component\Mailer\EventListener | vendor/ |
Logs Messages. | 1 | |||
MessageOptions | class | Google\Protobuf\Internal | vendor/ |
Generated from protobuf message <code>google.protobuf.MessageOptions</code> |