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 |
|---|---|---|---|---|---|---|---|---|
| MigrationPluginManagerTest | class | Drupal\Tests\migrate\Unit | core/ |
Tests Drupal\migrate\Plugin\MigrationPluginManager. | ||||
| MigrationPluginManagerTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the migration plugin manager. | ||||
| MigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests the getProcess() method of all Drupal 6 migrations. | ||||
| MigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Tests the getProcess() method of all Drupal 7 migrations. | ||||
| MigrationProvidersExistTest | class | Drupal\Tests\migrate_drupal\Kernel\Plugin | core/ |
Tests that modules exist for all source and destination plugins. | ||||
| MigrationSourceCacheTest | class | Drupal\Tests\migrate\Kernel\Plugin\source | core/ |
Test source counts are correctly cached. | ||||
| MigrationState | class | Drupal\migrate_drupal | core/ |
Determines the migrate state for all modules enabled on the source. | 3 | 2 | ||
| MigrationStateUnitTest | class | Drupal\Tests\migrate_drupal\Unit | core/ |
Defines a class for testing \Drupal\migrate_drupal\MigrationState. | ||||
| MigrationTest | class | Drupal\Tests\migrate\Unit | core/ |
Tests Drupal\migrate\Plugin\Migration. | ||||
| MigrationTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the migration plugin. | ||||
| MigrationTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the migration plugin. | ||||
| MigrationWithFollowUpInterface | interface | Drupal\migrate_drupal\Plugin | core/ |
Interface for migrations with follow-up migrations. | 2 | 3 | ||
| MimeTypeGuesser | class | Drupal\Core\File\MimeType | core/ |
Defines a MIME type guesser that also supports stream wrapper paths. | 1 | 2 | ||
| MimeTypeGuesser | class | Drupal\Core\ProxyClass\File\MimeType | core/ |
Provides a proxy class for \Drupal\Core\File\MimeType\MimeTypeGuesser. | ||||
| MimeTypeMap | class | Drupal\Core\File\MimeType | core/ |
Provides a sensible mapping between filename extensions and MIME types. | 2 | |||
| MimeTypeMapFactory | class | Drupal\Core\File\MimeType | core/ |
Factory for creating the MIME type map. | ||||
| MimeTypeMapInterface | interface | Drupal\Core\File\MimeType | core/ |
Provides an interface for MIME type to file extension mapping. | 1 | 4 | ||
| MimeTypeMapLoadedEvent | final class | Drupal\Core\File\Event | core/ |
Event that is fired when the MIME type map is loaded. | 3 | |||
| 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. | ||||
| 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. | 7 | |||
| 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. |
Pagination
- Previous page
- Page 139
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.