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 |
---|---|---|---|---|---|---|---|---|
ModerationHandler | class | Drupal\content_moderation\Entity\Handler | core/ |
Common customizations for most/all entities. | 3 | 1 | ||
ModerationHandlerInterface | interface | Drupal\content_moderation\Entity\Handler | core/ |
Defines operations that need to vary by entity type. | 1 | |||
ModerationInformation | class | Drupal\content_moderation | core/ |
General service for moderation-related questions about Entity API. | 1 | 2 | ||
ModerationInformationInterface | interface | Drupal\content_moderation | core/ |
Interface for moderation_information service. | 1 | 11 | ||
ModerationOptOutPublish | class | Drupal\content_moderation\Plugin\Action | core/ |
Alternate action plugin that can opt-out of modifying moderated entities. | 1 | |||
ModerationOptOutUnpublish | class | Drupal\content_moderation\Plugin\Action | core/ |
Alternate action plugin that can opt-out of modifying moderated entities. | 1 | |||
ModerationStateConstraint | class | Drupal\content_moderation\Plugin\Validation\Constraint | core/ |
Verifies that nodes have a valid moderation state. | ||||
ModerationStateConstraintValidator | class | Drupal\content_moderation\Plugin\Validation\Constraint | core/ |
Checks if a moderation state transition is valid. | ||||
ModerationStateField | class | Drupal\content_moderation\Plugin\views\field | core/ |
A field handler for the computed moderation_state field. | ||||
ModerationStateFieldItemList | class | Drupal\content_moderation\Plugin\Field | core/ |
A computed field that provides a content entity's moderation state. | 2 | |||
ModerationStateFilter | class | Drupal\content_moderation\Plugin\views\filter | core/ |
Provides a filter for the moderation state of an entity. | ||||
ModerationStateJoinViewsHandlerTrait | trait | Drupal\content_moderation\Plugin\views | core/ |
Assist views handler plugins to join to the content_moderation_state entity. | 3 | |||
ModerationStateSort | class | Drupal\content_moderation\Plugin\views\sort | core/ |
Enables sorting for the computed moderation_state field. | ||||
ModerationStateWidget | class | Drupal\content_moderation\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'moderation_state_default' widget. | ||||
ModernClassNameReferenceSniff | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
ModifiedResourceResponse | class | Drupal\rest | core/ |
A response that does not contain cacheability metadata. | 3 | |||
Modifiers | final class | PhpParser | vendor/ |
Modifiers used (as a bit mask) by various flags subnodes, for example on classes, functions, properties and constants. | 13 | |||
ModifyServiceDefinitionsPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Passes the container to the alter() method of all service providers. | 1 | |||
Module | class | Drupal\Core\Updater | core/ |
Defines a class for updating modules. | ||||
ModuleAdminLinksHelper | class | Drupal\system | core/ |
Provides a helper for generating module admin links. | 2 | 2 | ||
ModuleDeclaration | interface | Peast\Syntax\Node | vendor/ |
Common interface for function import and export nodes. | 4 | |||
ModuleDependencyMessageTrait | trait | Drupal\Core\Extension | core/ |
Messages for missing or incompatible dependencies on modules. | 2 | |||
ModuleExtensionList | class | Drupal\Core\Extension | core/ |
Provides a list of available modules. | 1 | 33 | ||
ModuleHandler | class | Drupal\Core\Extension | core/ |
Class that manages modules in a Drupal installation. | 1 | |||
ModuleHandlerInterface | interface | Drupal\Core\Extension | core/ |
Interface for classes that manage a set of enabled modules. | 1 | 171 | ||
ModuleInstaller | class | Drupal\Core\ProxyClass\Extension | core/ |
Provides a proxy class for \Drupal\Core\Extension\ModuleInstaller. | ||||
ModuleInstaller | class | Drupal\Core\Extension | core/ |
Default implementation of the module installer. | ||||
ModuleInstallerInterface | interface | Drupal\Core\Extension | core/ |
Provides the installation of modules with creating the db schema and more. | 2 | 9 | ||
ModuleLoadInclude | class | mglaman\PHPStanDrupal\Rules\Drupal | vendor/ |
Handles module_load_include dynamic file loading. | ||||
ModuleNode | final class | Twig\Node | vendor/ |
Represents a module node. | 7 | |||
ModulePermissionsLinkHelper | class | Drupal\user | core/ |
Provides a helper for generating module permissions links. | 2 | 2 | ||
ModuleRequiredByThemesUninstallValidator | class | Drupal\Core\Extension | core/ |
Ensures modules cannot be uninstalled if enabled themes depend on them. | ||||
ModuleRouteSubscriber | class | Drupal\Core\EventSubscriber | core/ |
A route subscriber to remove routes that depend on modules being enabled. | ||||
ModulesEnabledTrait | trait | Drupal\system\Form | core/ |
Provides helpers for enabling modules. | ||||
ModulesListConfirmForm | class | Drupal\system\Form | core/ |
Builds a confirmation form for enabling modules with dependencies. | 1 | 1 | ||
ModulesListForm | class | Drupal\system\Form | core/ |
Provides module installation interface. | 1 | |||
ModulesListNonStableConfirmForm | class | Drupal\system\Form | core/ |
Builds a confirmation form for enabling experimental and deprecated modules. | 1 | |||
ModuleSpecifier | abstract class | Peast\Syntax\Node | vendor/ |
Abstract class that export and import specifiers nodes must extend. | 4 | |||
ModulesUninstallConfirmForm | class | Drupal\system\Form | core/ |
Builds a confirmation form to uninstall selected modules. | 1 | |||
ModulesUninstallForm | class | Drupal\system\Form | core/ |
Provides a form for uninstalling modules. | 1 | |||
ModuleUninstallValidatorException | class | Drupal\Core\Extension | core/ |
Defines an exception thrown when uninstalling a module that did not validate. | ||||
ModuleUninstallValidatorInterface | interface | Drupal\Core\Extension | core/ |
Common interface for module uninstall validators. | 7 | 4 | ||
MODULEWorkInstaller | class | Composer\Installers | vendor/ |
|||||
MODXEvoInstaller | class | Composer\Installers | vendor/ |
An installer to handle MODX Evolution specifics when installing packages. | ||||
ModxInstaller | class | Composer\Installers | vendor/ |
An installer to handle MODX specifics when installing packages. | ||||
MongoDbSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
Session handler using the MongoDB driver extension. | ||||
MongoDbStore | class | Symfony\Component\Lock\Store | vendor/ |
MongoDbStore is a StoreInterface implementation using MongoDB as a storage engine. Support for MongoDB server >=2.2 due to use of TTL indexes. | ||||
MonthDate | class | Drupal\datetime\Plugin\views\argument | core/ |
Argument handler for a month. | ||||
MonthDate | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for a month (MM) | ||||
MoodleInstaller | class | Composer\Installers | vendor/ |