Classes, traits, and interfaces - 11.x - 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 1519
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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. | 11 | 1 | ||
Mapping | abstract class | Drupal\views\Plugin\views\style | core/ |
Allows fields to be mapped to specific use cases. | 1 | 1 | ||
MappingTest | class | Drupal\views_test_data\Plugin\views\style | core/ |
Provides a test plugin for the mapping style. | ||||
MappingTest | class | Drupal\KernelTests\Config\Schema | core/ |
@coversDefaultClass \Drupal\Core\Config\Schema\Mapping[[api-linebreak]] @group Config | ||||
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. | 34 | |||
Markup | class | Drupal\views\Plugin\views\field | core/ |
Handler to run a field through check_markup, using a companion format field. | ||||
MarkupInterface | interface | Drupal\Component\Render | core/ |
Marks an object's __toString() method as returning markup. | 13 | 44 | ||
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 | |||
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. | 42 | |||
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. | 1 | |||
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. | ||||
MediaEmbedFilterConfigurationUiAddTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests Media Embed Filter Configuration Ui Add. | ||||
MediaEmbedFilterConfigurationUiEditTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
Tests Media Embed Filter Configuration Ui Edit. | ||||
MediaEmbedFilterDisabledIntegrationsTest | class | Drupal\Tests\media\Kernel | core/ |
Tests that media embed disables certain integrations. | ||||
MediaEmbedFilterTest | class | Drupal\Tests\media\Kernel | core/ |
@coversDefaultClass \Drupal\media\Plugin\Filter\MediaEmbed[[api-linebreak]] @group media | ||||
MediaEmbedFilterTestBase | abstract class | Drupal\Tests\media\FunctionalJavascript | core/ |
Base class for media embed filter configuration tests. | 2 | |||
MediaEmbedFilterTestBase | abstract class | Drupal\Tests\media\Kernel | core/ |
Base class for Media Embed filter tests. | 3 | |||
MediaEmbedFilterTranslationTest | class | Drupal\Tests\media\Kernel | core/ |
Tests that media embeds are translated based on text (host entity) language. | ||||
MediaEntityMetadataApiTest | class | Drupal\Tests\ckeditor5\Functional | core/ |
Tests the media entity metadata API. | ||||
MediaFilterController | class | Drupal\media\Controller | core/ |
Controller which renders a preview of the provided text. | 1 | 1 | ||
MediaForm | class | Drupal\media | core/ |
Form controller for the media edit forms. | 2 | |||
MediaFunctionalTestBase | abstract class | Drupal\Tests\media\Functional | core/ |
Base class for Media functional tests. | 18 | 3 | ||
MediaFunctionalTestTrait | trait | Drupal\Tests\media\Functional | core/ |
Trait with helpers for Media functional tests. | 1 | |||
MediaHooks | class | Drupal\media\Hook | core/ |
Hook implementations for media. | ||||
MediaInstallTest | class | Drupal\Tests\media\Functional | core/ |
Tests media Install / Uninstall logic. | ||||
MediaInterface | interface | Drupal\media | core/ |
Provides an interface defining an entity for media items. | 1 | 15 | ||
MediaJavascriptTestBase | abstract class | Drupal\Tests\media\FunctionalJavascript | core/ |
Base class for Media functional JavaScript tests. | 8 |
Pagination
- Previous page
- Page 115
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.