Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
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. | 2 | 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. | ||||
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. | 30 | |||
Markup | class | Drupal\views\Plugin\views\field | core/ |
A 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. | 14 | 45 | ||
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. | 2 | |||
MarkupTrait | trait | Drupal\Component\Render | core/ |
Implements MarkupInterface and Countable for rendered objects. | 9 | |||
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 a addRoutes method. | 3 | |||
MatcherDumperTest | class | Drupal\KernelTests\Core\Routing | core/ |
Confirm that the matcher dumper is functioning properly. | ||||
MatchingRouteNotFoundException | 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. | 37 | |||
Media | class | Drupal\media\Plugin\views\wizard | core/ |
Provides Views creation wizard for Media. | ||||
MediaAccessControlHandler | class | Drupal\media | core/ |
Defines an access control handler for media items. | ||||
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. | ||||
MediaDeleteMultipleConfirmForm | in drupal:8.6.0 and is removed from drupal:9.0.0. This route is not used in Drupal core. As an internal API, it may also be removed in a minor release. If you are using it, copy the class and the related "entity.media.multiple_delete_confirm" route to your module. |
class | Drupal\media\Form | core/ |
Provides a confirmation form to delete multiple media items at once. | 1 | ||
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. | ||||
MediaEmbedFilterConfigurationUiTest | class | Drupal\Tests\media\FunctionalJavascript | core/ |
@covers ::media_filter_format_edit_form_validate @group media | ||||
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 @group media | ||||
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. | ||||
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. | 14 | 1 | ||
MediaFunctionalTestCreateMediaTypeTrait | in drupal:8.6.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\media\Traits\MediaTypeCreationTrait instead. |
trait | Drupal\Tests\media\Functional | core/ |
Trait with helpers for Media functional tests. | |||
MediaFunctionalTestTrait | trait | Drupal\Tests\media\Functional | core/ |
Trait with helpers for Media functional tests. | 1 | |||
MediaHalJsonAnonTest | class | Drupal\Tests\media\Functional\Hal | core/ |
@group hal | 2 | |||
MediaHalJsonBasicAuthTest | class | Drupal\Tests\media\Functional\Hal | core/ |
@group hal | ||||
MediaHalJsonCookieTest | class | Drupal\Tests\media\Functional\Hal | core/ |
@group hal | ||||
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 101
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.