Classes, traits, and interfaces - main - drupal
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 1529
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| ManyAssetsTestHooks | class | Drupal\many_assets_test\Hook | core/ |
Hook implementations for many_assets_test. | ||||
| ManyPlaceholderTest | class | Drupal\Tests\big_pipe\Unit\Render | core/ |
Tests Drupal\big_pipe\Render\BigPipe. | ||||
| 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 | ||
| MapBaseFieldTest | class | Drupal\KernelTests\Core\Field | core/ |
Tests map base fields. | ||||
| MapDataDefinition | class | Drupal\Core\TypedData | core/ |
A typed data definition class for defining maps. | 13 | 1 | ||
| MapDataNormalizerTest | class | Drupal\Tests\serialization\Kernel | core/ |
Tests Map Data Normalizer. | ||||
| MapFieldItemList | class | Drupal\Core\Field | core/ |
Defines an item list class for map fields. | 1 | |||
| MapItem | class | Drupal\Core\Field\Plugin\Field\FieldType | core/ |
Defines the 'map' entity field type. | ||||
| MappedClass | class | Drupal\Tests\Component\Annotation\Doctrine\Ticket | core/ |
@Entity | ||||
| MappedDiff | class | Drupal\Component\Diff | core/ |
FIXME: bad name. @todo document @private @subpackage DifferenceEngine | 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 | 3 | ||
| Mapping | class | Drupal\Core\Config\Schema | core/ |
Defines a mapping configuration element. | 12 | 1 | ||
| Mapping | abstract class | Drupal\views\Plugin\views\style | core/ |
Allows fields to be mapped to specific use cases. | 1 | 1 | ||
| MappingCollectionConstraint | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Checks that at least one of the given constraints is satisfied. | 1 | |||
| MappingCollectionConstrainTest | class | Drupal\KernelTests\Core\Validation | core/ |
Tests nested composite validation constraints. | ||||
| MappingCollectionConstraintValidator | class | Drupal\Core\Validation\Plugin\Validation\Constraint | core/ |
Validates the MappingCollection constraint. | 1 | |||
| MappingTest | class | Drupal\KernelTests\Config\Schema | core/ |
Tests Drupal\Core\Config\Schema\Mapping. | ||||
| MappingTest | class | Drupal\views_test_data\Plugin\views\style | core/ |
Provides a test plugin for the mapping style. | ||||
| Marker | class | Drupal\Tests\Component\Annotation\Doctrine | core/ |
|||||
| Markup | final class | Drupal\Core\Render | core/ |
Defines an object that passes safe strings through the render system. | 37 | |||
| Markup | class | Drupal\views\Plugin\views\field | core/ |
Handler to process text using a format field. | ||||
| MarkupInterface | interface | Drupal\Component\Render | core/ |
Marks an object's __toString() method as returning markup. | 13 | 49 | ||
| MarkupInterfaceComparator | class | Drupal\TestTools\Comparator | core/ |
Compares MarkupInterface objects for equality. | 3 | |||
| MarkupInterfaceComparatorTest | class | Drupal\KernelTests\Core\Test\Comparator | core/ |
Tests \Drupal\TestTools\Comparator\MarkupInterfaceComparator. | ||||
| MarkupNormalizer | class | Drupal\serialization\Normalizer | core/ |
Normalizes MarkupInterface objects into a string. | 1 | 2 | ||
| MarkupNormalizerTest | final class | Drupal\Tests\serialization\Unit\Normalizer | core/ |
Tests Drupal\serialization\Normalizer\MarkupNormalizer. | ||||
| MarkupTrait | trait | Drupal\Component\Render | core/ |
Implements MarkupInterface and Countable for rendered objects. | 8 | |||
| MatcherDumper | class | Drupal\Core\ProxyClass\Routing | core/ |
Provides a proxy class for \Drupal\Core\Routing\MatcherDumper. | ||||
| MatcherDumper | class | Drupal\Core\Routing | core/ |
Dumps Route information to a database table. | 2 | 2 | ||
| MatcherDumperInterface | interface | Drupal\Core\Routing | core/ |
Extends the symfony matcher dumper interface with an addRoutes method. | 3 | 1 | ||
| MatcherDumperTest | class | Drupal\KernelTests\Core\Routing | core/ |
Confirm that the matcher dumper is functioning properly. | ||||
| 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. | |||
| MaximumFileSizeExceededUploadTest | class | Drupal\Tests\file\FunctionalJavascript | core/ |
Tests uploading a file that exceeds the maximum file size. | ||||
| Media | class | Drupal\media\Entity | core/ |
Defines the media entity class. | 47 | |||
| 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. | 2 | 1 | ||
| MediaAccessControlHandler | class | Drupal\media | core/ |
Defines an access control handler for media items. | 2 | |||
| MediaAccessControlHandlerTest | class | Drupal\Tests\media\Kernel | core/ |
Tests the media access control handler. | ||||
| MediaAccessTest | class | Drupal\Tests\media\Functional | core/ |
Basic access tests for Media. | ||||
| MediaBulkFormTest | class | Drupal\Tests\media\Functional | core/ |
Tests a media bulk form. | ||||
| MediaCacheTagsTest | class | Drupal\Tests\media\Functional | core/ |
Tests the media items cache tags. | ||||
| MediaConfigSubscriber | class | Drupal\media\EventSubscriber | core/ |
Listens to the config save event for media.settings. | 2 | |||
| MediaContextualLinksTest | class | Drupal\Tests\media\Functional | core/ |
Tests views contextual links on media items. | ||||
| MediaCreationTest | class | Drupal\Tests\media\Kernel | core/ |
Tests creation of media types and media items. | ||||
| MediaDisplayTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Basic display tests for Media. | ||||
| MediaEmbed | class | Drupal\media\Plugin\Filter | core/ |
Provides a filter to embed media items using a custom tag. | 3 |
Pagination
- Previous page
- Page 120
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.