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 |
---|---|---|---|---|---|---|---|---|
MoreLink | class | Drupal\Core\Render\Element | core/ |
Provides a link render element for a "more" link, like those used in blocks. | ||||
MoreThanOneDataSetFromDataProviderException | final class | PHPUnit\Event\TestData | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 8 | |||
MoveAttributesFromFilterWhitelistToCoverage | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MoveAttributesFromRootToCoverage | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MoveBlockController | class | Drupal\layout_builder\Controller | core/ |
Defines a controller to move a block. | ||||
MoveBlockForm | class | Drupal\layout_builder\Form | core/ |
Provides a form for moving a block. | 1 | |||
MoveCoverageDirectoriesToSource | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MoveTargetOutOfBounds | final class | WebDriver\Exception | vendor/ |
WebDriver\Exception\MoveTargetOutOfBounds class | ||||
MoveWhitelistExcludesToCoverage | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MoveWhitelistIncludesToCoverage | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MTimeProtectedFastFileStorage | class | Drupal\Component\PhpStorage | core/ |
Stores PHP code in files with securely hashed names. | 1 | |||
MTimeProtectedFileStorage | class | Drupal\Component\PhpStorage | core/ |
Stores PHP code in files with securely hashed names. | ||||
Mul | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
Mul | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
MulBinary | class | Twig\Node\Expression\Binary | vendor/ |
1 | ||||
MultiConflictRule | class | Composer\DependencyResolver | vendor/ |
@author Nils Adermann <naderman@naderman.de> | ||||
MultiConstraint | class | Composer\Semver\Constraint | vendor/ |
Defines a conjunctive or disjunctive set of constraints. | 9 | |||
MultiItemsFieldHandlerInterface | interface | Drupal\views\Plugin\views\field | core/ |
Defines a field handler which renders multiple items per row. | 2 | |||
MultiLineArrayEndBracketPlacementSniff | class | SlevomatCodingStandard\Sniffs\Arrays | vendor/ |
|||||
MultiLineAssignmentSniff | class | Drupal\Sniffs\Formatting | vendor/ |
\Drupal\Sniffs\Formatting\MultiLineAssignmentSniff. | ||||
MultiLineAssignmentSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\Formatting | vendor/ |
|||||
MultiLineConditionSniff | class | PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures | vendor/ |
|||||
MultiLineFunctionDeclarationSniff | class | Drupal\Sniffs\Functions | vendor/ |
Multi-line function declarations need to have a trailing comma on the last parameter. Modified from Squiz, whenever there is a function declaration closing parenthesis on a new line we treat it as multi-line. | ||||
MultiLineFunctionDeclarationSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions | vendor/ |
1 | 2 | |||
MultiLogRecordProcessor | class | OpenTelemetry\SDK\Logs\Processor | vendor/ |
2 | ||||
MultiObserver | final class | OpenTelemetry\SDK\Metrics\MetricRegistry | vendor/ |
@internal | ||||
MultipartStream | final class | GuzzleHttp\Psr7 | vendor/ |
Stream that when read returns bytes for a streaming multipart or multipart/form-data stream. | ||||
MultipleErrors | class | Egulias\EmailValidator\Result | vendor/ |
@psalm-suppress PropertyNotSetInConstructor | 1 | |||
MultiplePcreFilterIterator | abstract class | Symfony\Component\Finder\Iterator | vendor/ |
MultiplePcreFilterIterator filters files using patterns (regexps, globs or strings). | 3 | |||
MultipleProviderAnnotationInterface | interface | Drupal\migrate\Annotation | core/ |
Defines a common interface for classed annotations with multiple providers. | 1 | 1 | ||
MultipleStatementAlignmentSniff | class | Drupal\Sniffs\Formatting | vendor/ |
Checks alignment of multiple assignments.Largely copied from \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff but also allows multiple single space assignments. | ||||
MultipleStatementAlignmentSniff | class | PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting | vendor/ |
1 | 1 | |||
MultipleUsesPerLineSniff | class | SlevomatCodingStandard\Sniffs\Namespaces | vendor/ |
|||||
MultipleValidationWithAnd | class | Egulias\EmailValidator\Validation | vendor/ |
|||||
MultiReferenceCounter | final class | OpenTelemetry\SDK\Metrics\StalenessHandler | vendor/ |
@internal | 1 | |||
MultiRegistryRegistration | final class | OpenTelemetry\SDK\Metrics\MetricRegistration | vendor/ |
@internal | 1 | |||
MultisiteValidator | final class | Drupal\package_manager\Validator | core/ |
Checks that the current site is not part of a multisite. | ||||
MultiSpanProcessor | final class | OpenTelemetry\SDK\Trace\SpanProcessor | vendor/ |
Class SpanMultiProcessor is a SpanProcessor that forwards all events to an array of SpanProcessors. | 1 | |||
MultiTextMapPropagator | final class | OpenTelemetry\Context\Propagation | vendor/ |
1 | ||||
MultiWidthLayoutBase | abstract class | Drupal\layout_builder\Plugin\Layout | core/ |
Base class of layouts with configurable widths. | 2 | |||
MysqlCastSql | class | Drupal\mysql\Plugin\views\query | core/ |
MySQL specific cast handling. | 2 | |||
MysqlDateSql | class | Drupal\views\Plugin\views\query | core/ |
MySQL-specific date handling. | 2 | |||
MysqlHooks | class | Drupal\mysql\Hook | core/ |
Hook implementations for mysql. | ||||
MysqliCaster | final class | Symfony\Component\VarDumper\Caster | vendor/ |
@author Nicolas Grekas <p@tchwork.com> | ||||
Name | class | Drupal\user\Plugin\views\filter | core/ |
Filter handler for usernames. | 1 | 1 | ||
Name | class | PhpParser\Node | vendor/ |
2 | 31 | |||
NameAlreadyInUseException | final class | PHPUnit\Framework\MockObject\Generator | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
NameContext | class | PhpParser | vendor/ |
1 | ||||
NameConverterInterface | interface | Symfony\Component\Serializer\NameConverter | vendor/ |
Defines the interface for property name converters. | 3 | 5 | ||
NamedArgumentConstructor | final class | Doctrine\Common\Annotations\Annotation | vendor/ |
Annotation that indicates that the annotated class should be constructed with a named argument call. | 1 |