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 |
---|---|---|---|---|---|---|---|---|
MatchAllWithOffsetsResult | final class | Composer\Pcre | vendor/ |
|||||
MatchArm | class | PhpParser\Node | vendor/ |
2 | ||||
MatchBuilderNotFoundException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
Matcher | interface | DeepCopy\Matcher | vendor/ |
4 | 2 | |||
Matcher | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MatcherAlreadyRegisteredException | final class | PHPUnit\Framework\MockObject | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MatcherDumper | class | Drupal\Core\Routing | core/ |
Dumps Route information to a database table. | ||||
MatcherDumper | abstract class | Symfony\Component\Routing\Matcher\Dumper | vendor/ |
MatcherDumper is the abstract class for all built-in matcher dumpers. | 1 | |||
MatcherDumper | class | Drupal\Core\ProxyClass\Routing | core/ |
Provides a proxy class for \Drupal\Core\Routing\MatcherDumper. | ||||
MatcherDumperInterface | interface | Drupal\Core\Routing | core/ |
Extends the symfony matcher dumper interface with an addRoutes method. | 3 | |||
MatcherDumperInterface | interface | Symfony\Component\Routing\Matcher\Dumper | vendor/ |
MatcherDumperInterface is the interface that all matcher dumper classes must implement. | 2 | 2 | ||
Matches | class | Peast\Selector | vendor/ |
Selector matches class | 4 | |||
MatchesBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
MatchingNode | class | Symfony\Component\CssSelector\Node | vendor/ |
Represents a "<selector>:is(<subSelectorList>)" node. | ||||
MatchingRouteNotFoundException | in drupal:11.1.0 and is removed from drupal:12.0.0. There is no replacement. |
class | Drupal\Core\Routing | core/ |
No matching route was found. | |||
MatchNoneConstraint | class | Composer\Semver\Constraint | vendor/ |
Blackhole of constraints, nothing escapes it | 2 | |||
MatchResult | final class | Composer\Pcre | vendor/ |
|||||
MatchStrictGroupsResult | final class | Composer\Pcre | vendor/ |
|||||
MatchTokenEmulator | final class | PhpParser\Lexer\TokenEmulator | vendor/ |
1 | ||||
MatchWithOffsetsResult | final class | Composer\Pcre | vendor/ |
|||||
Match_ | class | PhpParser\Node\Expr | vendor/ |
|||||
MathException | class | Brick\Math\Exception | vendor/ |
Base class for all math exceptions. | 5 | 5 | ||
MatomoInstaller | class | Composer\Installers | vendor/ |
Class MatomoInstaller | ||||
MauticInstaller | class | Composer\Installers | vendor/ |
|||||
MaxDepth | class | Symfony\Component\Serializer\Attribute | vendor/ |
@author Kévin Dunglas <dunglas@gmail.com> | 1 | |||
MaxFileSizeExceededException | class | Composer\Downloader | vendor/ |
2 | ||||
MaxTrait | trait | Ramsey\Uuid\Rfc4122 | vendor/ |
Provides common functionality for max UUIDs | 1 | |||
MaxUuid | final class | Ramsey\Uuid\Rfc4122 | vendor/ |
The max UUID is special form of UUID that is specified to have all 128 bits set to one | ||||
MayaInstaller | class | Composer\Installers | vendor/ |
|||||
Mbstring | final class | Symfony\Polyfill\Mbstring | vendor/ |
Partial mbstring implementation in PHP, iconv based, UTF-8 centric. | ||||
Media | class | Drupal\media\Plugin\views\wizard | core/ |
Provides Views creation wizard for Media. | ||||
Media | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Media plugin. | 1 | |||
Media | class | Drupal\media\Entity | core/ |
Defines the media entity class. | 1 | |||
MediaAccessControlHandler | class | Drupal\media | core/ |
Defines an access control handler for media items. | 1 | |||
MediaConfigSubscriber | class | Drupal\media\EventSubscriber | core/ |
Listens to the config save event for media.settings. | 2 | |||
MediaEmbed | class | Drupal\media\Plugin\Filter | core/ |
Provides a filter to embed media items using a custom tag. | ||||
MediaFilterController | class | Drupal\media\Controller | core/ |
Controller which renders a preview of the provided text. | ||||
MediaForm | class | Drupal\media | core/ |
Form controller for the media edit forms. | 2 | |||
MediaHooks | class | Drupal\media\Hook | core/ |
Hook implementations for media. | ||||
MediaInterface | interface | Drupal\media | core/ |
Provides an interface defining an entity for media items. | 1 | 9 | ||
MediaLibrary | class | Drupal\ckeditor5\Plugin\CKEditor5Plugin | core/ |
CKEditor 5 Media Library plugin. | 1 | |||
MediaLibraryEditorOpener | class | Drupal\media_library | core/ |
The media library opener for text editors. | 2 | |||
MediaLibraryFieldWidgetOpener | class | Drupal\media_library | core/ |
The media library opener for field widgets. | 2 | |||
MediaLibraryHooks | class | Drupal\media_library\Hook | core/ |
Hook implementations for media_library. | ||||
MediaLibraryOpenerInterface | interface | Drupal\media_library | core/ |
Defines an interface for media library openers. | 2 | |||
MediaLibrarySelectForm | class | Drupal\media_library\Plugin\views\field | core/ |
Defines a field that outputs a checkbox and form for selecting media. | ||||
MediaLibraryServiceProvider | class | Drupal\media_library | core/ |
Service provider for media library services. | ||||
MediaLibraryState | class | Drupal\media_library | core/ |
A value object for the media library state. | 4 | |||
MediaLibraryUiBuilder | class | Drupal\media_library | core/ |
Service which builds the media library. | 4 | 2 | ||
MediaLibraryViewsHooks | class | Drupal\media_library\Hook | core/ |
Hook implementations for media_library. |