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 |
---|---|---|---|---|---|---|---|---|
ManifestDocumentMapperException | class | PharIo\Manifest | vendor/ |
|||||
ManifestElement | class | PharIo\Manifest | vendor/ |
10 | ||||
ManifestElementException | class | PharIo\Manifest | vendor/ |
|||||
ManifestLoader | class | PharIo\Manifest | vendor/ |
1 | ||||
ManifestLoaderException | class | PharIo\Manifest | vendor/ |
|||||
ManifestSerializer | class | PharIo\Manifest | vendor/ |
@psalm-suppress MissingConstructor | ||||
Manipulator | class | Behat\Mink\Selector\Xpath | vendor/ |
XPath manipulation utility. | 1 | |||
MantisBTInstaller | class | Composer\Installers | vendor/ |
|||||
ManyToOne | class | Drupal\views\Plugin\views\filter | core/ |
Complex filter to handle filtering for many to one relationships. | 5 | 4 | ||
ManyToOne | class | Drupal\views\Plugin\views\argument | core/ |
Argument handler for many to one relationships. | 2 | 2 | ||
ManyToOneHelper | class | Drupal\views | core/ |
This many to one helper object is used on both arguments and filters. | 3 | |||
Map | class | Drupal\Core\TypedData\Plugin\DataType | core/ |
The "map" data type. | 1 | 1 | ||
MapDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining maps. | 5 | 1 | ||
MapDateTime | class | Symfony\Component\HttpKernel\Attribute | vendor/ |
Controller parameter tag to configure DateTime arguments. | 1 | |||
MapEntry | class | Google\Protobuf\Internal | vendor/ |
1 | ||||
MapError | final class | PHPUnit\Event | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MapField | class | Google\Protobuf\Internal | vendor/ |
MapField is used by generated protocol message classes to manipulate map fields. It can be used like native PHP array. | 1 | |||
MapFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for map fields. | 1 | |||
MapFieldIter | class | Google\Protobuf\Internal | vendor/ |
MapFieldIter is used to iterate MapField. It is also need for the foreach syntax. | ||||
MapInterface | interface | Ramsey\Collection\Map | vendor/ |
An object that maps keys to values. | 2 | |||
MapItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'map' entity field type. | ||||
MapParser | class | OpenTelemetry\SDK\Common\Configuration\Parser | vendor/ |
1 | ||||
MappedDiff | class | Drupal\Component\Diff | core/ |
FIXME: bad name. @todo document @private @subpackage DifferenceEngine | 1 | |||
Mapper | final class | SebastianBergmann\CodeUnit | vendor/ |
1 | ||||
MapperExceptionInterface | interface | Drupal\Component\Plugin\Exception | core/ |
Base exception interface for grouping mapper exceptions. | ||||
MapperInterface | interface | Drupal\Component\Plugin\Mapper | core/ |
Plugin mapper interface. | 1 | 1 | ||
Mapping | abstract class | Drupal\views\Plugin\views\style | core/ |
Allows fields to be mapped to specific use cases. | ||||
Mapping | class | Drupal\Core\Config\Schema | core/ |
Defines a mapping configuration element. | 6 | 1 | ||
MappingException | class | Symfony\Component\Validator\Exception | vendor/ |
6 | ||||
MappingException | class | Symfony\Component\Serializer\Exception | vendor/ |
MappingException. | 5 | |||
MapQueryParameter | final class | Symfony\Component\HttpKernel\Attribute | vendor/ |
Can be used to pass a query parameter to a controller argument. | 1 | |||
MapQueryString | class | Symfony\Component\HttpKernel\Attribute | vendor/ |
Controller parameter tag to map the query string of the request to typed object and validate it. | 1 | |||
MapRequestPayload | class | Symfony\Component\HttpKernel\Attribute | vendor/ |
Controller parameter tag to map the request content to typed object and validate it. | 1 | |||
MapUploadedFile | class | Symfony\Component\HttpKernel\Attribute | vendor/ |
1 | ||||
MarkAliasInstalledOperation | class | Composer\DependencyResolver\Operation | vendor/ |
Solver install operation. | 1 | |||
MarkAliasUninstalledOperation | class | Composer\DependencyResolver\Operation | vendor/ |
Solver install operation. | 1 | |||
Markdown | class | PHP_CodeSniffer\Generators | vendor/ |
|||||
MarkdownDescriptor | class | Symfony\Component\Console\Descriptor | vendor/ |
Markdown descriptor. | 1 | |||
MarkedIncomplete | final class | PHPUnit\Event\Test | vendor/ |
@psalm-immutable | 12 | |||
MarkedIncompleteSubscriber | interface | PHPUnit\Event\Test | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 6 | 6 | ||
Markup | class | Twig | vendor/ |
Marks a content as safe. | 4 | |||
Markup | class | Drupal\views\Plugin\views\field | core/ |
Handler to run a field through check_markup, using a companion format field. | ||||
Markup | final class | Drupal\Core\Render | core/ |
Defines an object that passes safe strings through the render system. | 15 | |||
MarkupInterface | interface | Drupal\Component\Render | core/ |
Marks an object's __toString() method as returning markup. | 11 | 27 | ||
MarkupNormalizer | class | Drupal\serialization\Normalizer | core/ |
Normalizes MarkupInterface objects into a string. | 2 | |||
MarkupTrait | trait | Drupal\Component\Render | core/ |
Implements MarkupInterface and Countable for rendered objects. | 6 | |||
MarshallingSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
@author Ahmed TAILOULOUTE <ahmed.tailouloute@gmail.com> | ||||
MatchAllConstraint | class | Composer\Semver\Constraint | vendor/ |
Defines the absence of a constraint. | 9 | |||
MatchAllResult | final class | Composer\Pcre | vendor/ |
|||||
MatchAllStrictGroupsResult | final class | Composer\Pcre | vendor/ |