Classes, traits, and interfaces - 10.3.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 1518
| Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
|---|---|---|---|---|---|---|---|---|
| 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 | |||
| MissingGroupException | class | Drupal\Core\Test\Exception | core/ |
Exception thrown when a test class is missing an @group annotation. | 2 | |||
| 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. | ||||
| MockContainerAware | class | Drupal\Tests\Core\Controller | core/ |
|||||
| MockContainerAware | class | Drupal\Tests\Core\Utility | core/ |
|||||
| MockContainerInjection | class | Drupal\Tests\Core\Controller | core/ |
|||||
| MockContainerInjection | class | Drupal\Tests\Core\Utility | core/ |
|||||
| MockController | class | Drupal\Tests\Core\Controller | core/ |
|||||
| MockControllerPsr7 | class | Drupal\Tests\Core\Controller | core/ |
|||||
| MockFileFinder | class | Drupal\Component\Annotation\Reflection | core/ |
Defines a mock file finder that only returns a single filename. | 6 | |||
| MockFileFinderTest | class | Drupal\Tests\Component\Annotation | core/ |
@coversDefaultClass \Drupal\Component\Annotation\Reflection\MockFileFinder[[api-linebreak]] @group Annotation | ||||
| MockFileTransfer | class | Drupal\system_test | core/ |
Mock FileTransfer object to test the settings form functionality. | ||||
| 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/ |
|||||
| 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. | ||||
| 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. | ||||
| MockTestConnection | class | Drupal\Tests\system\Functional\FileTransfer | core/ |
Mock connection object for test case. | 1 | |||
| 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. | ||||
| ModeratedContentViewTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests moderated content administration page functionality. | ||||
| ModeratedNodeJsonAnonTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
@group rest | ||||
| ModeratedNodeJsonBasicAuthTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
@group rest | ||||
| ModeratedNodeJsonCookieTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
@group rest | ||||
| ModeratedNodeListBuilder | class | Drupal\content_moderation | core/ |
Defines a class to build a listing of moderated node entities. | 1 | |||
| ModeratedNodeResourceTestBase | abstract class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
Extend the Node resource test base and apply moderation to the entity. | 6 | |||
| ModeratedNodeXmlAnonTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
@group rest | ||||
| ModeratedNodeXmlBasicAuthTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
@group rest | ||||
| ModeratedNodeXmlCookieTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
@group rest | ||||
| ModerationActionsTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Test the content moderation actions. |
Pagination
- Previous page
- Page 122
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.