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 |
|---|---|---|---|---|---|---|---|---|
| MimeTypeMapTest | class | Drupal\Tests\Core\File\MimeType | core/ |
Tests the MIME type mapper to extension. | ||||
| Mini | class | Drupal\views\Plugin\views\pager | core/ |
The plugin to handle mini pager. | ||||
| MinimalInstallerTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests the interactive installer installing the minimal profile. | ||||
| MinimalTest | class | Drupal\Tests\minimal\Functional | core/ |
Tests Minimal installation profile expectations. | ||||
| MiniPagerTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the mini pager plugin. | ||||
| MissingAttributes | class | Drupal\Tests\Core\Foo | core/ |
|||||
| MissingAttributesTest | class | Drupal\Tests\Core\Foo | core/ |
|||||
| MissingAttributesWithDataProviderTest | class | Drupal\Tests\Core\Foo | core/ |
|||||
| MissingBundleClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if a bundle class does not exist. | 2 | |||
| MissingClassDetectionClassLoader | final class | Drupal\Component\Discovery | core/ |
Defines a classloader that detects missing classes. | 2 | |||
| MissingContentEvent | class | Drupal\Core\Config\Importer | core/ |
Wraps a configuration event for event listeners. | 2 | |||
| MissingDataException | class | Drupal\Core\TypedData\Exception | core/ |
Exception thrown when an operation misses a data value; i.e., it is unset. | 3 | |||
| MissingDependencyException | class | Drupal\Core\Extension | core/ |
Exception class to throw when modules are missing on install. | 5 | |||
| MissingGroup | class | Drupal\Tests\Core\Foo | core/ |
#[RunTestsInSeparateProcesses] | ||||
| MissingGroupException | class | Drupal\Core\Test\Exception | core/ |
Exception thrown when a test class is missing the 'group' metadata. | 2 | |||
| MissingRunTestsInSeparateProcesses | class | Drupal\Tests\Core\Foo | core/ |
#[Group('Test')] | ||||
| MissingSchema | class | Drupal\block_test\Plugin\Condition | core/ |
Provides a 'missing_schema' condition. | ||||
| MissingThemeDependencyException | class | Drupal\Core\Theme | core/ |
Exception to be thrown when base theme for installed theme is not installed. | ||||
| MissingValueContextException | class | Drupal\Component\Plugin\Exception | core/ |
An exception class thrown when contexts exist but are missing a value. | 3 | |||
| MockAliasManager | class | Drupal\system\Tests\Routing | core/ |
An easily configurable mock alias manager. | 1 | |||
| MockBlockManager | class | Drupal\plugin_test\Plugin | core/ |
Defines a plugin manager used by Plugin API derivative unit tests. | 2 | |||
| MockClient | class | Drupal\Tests\Core\Test | core/ |
A mock client. | ||||
| MockComplexContextBlock | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Implementation of a complex context plugin used by Plugin API context tests. | ||||
| MockConfiguratorInterface | interface | Drupal\Tests\Component\DependencyInjection | core/ |
Helper interface to test Container::get() with configurator. | ||||
| MockContainerInjection | class | Drupal\Tests\Core\Controller | core/ |
Mock for the injected service. | ||||
| MockContainerInjection | class | Drupal\Tests\Core\Utility | core/ |
Test class mocking container injection. | ||||
| MockController | class | Drupal\Tests\Core\Controller | core/ |
Mock for the controller. | ||||
| MockControllerPsr7 | class | Drupal\Tests\Core\Controller | core/ |
Mock for the PSR-7 controller. | ||||
| MockFileFinder | class | Drupal\Component\Annotation\Reflection | core/ |
Defines a mock file finder that only returns a single filename. | 8 | |||
| MockFileFinderTest | class | Drupal\Tests\Component\Annotation | core/ |
Tests Drupal\Component\Annotation\Reflection\MockFileFinder. | ||||
| MockFormBase | abstract class | Drupal\Tests\Core\Form | core/ |
Interface used in the mocking process of this test. | ||||
| MockInstantiationService | class | Drupal\Tests\Component\DependencyInjection | core/ |
Helper class to test Container::get() method for varying number of parameters. | ||||
| MockInvokeController | class | Drupal\Tests\Core\Controller | core/ |
Test class used for testing the Controller resolver class. | ||||
| MockLayoutBlock | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Mock implementation of a layout block plugin used by Plugin API unit tests. | ||||
| MockLayoutBlockDeriver | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Mock implementation of DeriverInterface for the mock layout block plugin. | ||||
| MockMatcher | class | Drupal\Tests\system\Functional\Routing | core/ |
A mock matcher that can be configured with any matching logic for testing. | ||||
| MockMenuBlock | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Mock implementation of a menu block plugin used by Plugin API unit tests. | ||||
| MockMenuBlockDeriver | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Mock implementation of DeriverInterface for the mock menu block plugin. | ||||
| MockPathLocator | final class | Drupal\package_manager_bypass | core/ |
Mock path locator: allows specifying paths instead of discovering paths. | ||||
| MockPhpStorage | class | Drupal\system\PhpStorage | core/ |
Mock PHP storage class used for testing. | 1 | |||
| MockRouteProvider | class | Drupal\system\Tests\Routing | core/ |
Easily configurable mock route provider. | 3 | |||
| MockRouterInterface | interface | Drupal\Tests\Core\Routing | core/ |
Interface used in the mocking process of this test. | ||||
| MockService | class | Drupal\Tests\Component\DependencyInjection | core/ |
Helper class to test Container::get() method. | ||||
| MockTestBlock | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Mock implementation of a test block plugin used by Plugin API unit tests. | ||||
| MockUserLoginBlock | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Mock implementation of a login block plugin used by Plugin API unit tests. | ||||
| MockUserNameBlock | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Implementation of a user name block plugin used by Plugin API context test. | ||||
| ModalRenderer | class | Drupal\Core\Render\MainContent | core/ |
Default main content renderer for modal dialog requests. | 1 | 1 | 2 | |
| ModalRendererTest | class | Drupal\Tests\system\FunctionalJavascript | core/ |
Tests that dialog links use different renderer services. | ||||
| ModeratedContentController | class | Drupal\content_moderation\Controller | core/ |
Defines a controller to list moderated nodes. | ||||
| ModeratedContentLocalTaskTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests moderated content dynamic local task. |
Pagination
- Previous page
- Page 133
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.