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 |
|---|---|---|---|---|---|---|---|---|
| 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. | ||||
| ModeratedContentViewTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests moderated content administration page functionality. | ||||
| ModeratedNodeJsonAnonTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
Tests Moderated Node Json Anon. | ||||
| ModeratedNodeJsonBasicAuthTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
Tests Moderated Node Json Basic Auth. | ||||
| ModeratedNodeJsonCookieTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
Tests Moderated Node Json Cookie. | ||||
| 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/ |
Tests Moderated Node Xml Anon. | ||||
| ModeratedNodeXmlBasicAuthTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
Tests Moderated Node Xml Basic Auth. | ||||
| ModeratedNodeXmlCookieTest | class | Drupal\Tests\rest\Functional\EntityResource\ModeratedNode | core/ |
Tests Moderated Node Xml Cookie. | ||||
| ModerationActionsTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Test the content moderation actions. | ||||
| ModerationContentTranslationTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Test content_moderation functionality with content_translation. | ||||
| ModerationFormTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests the moderation form, specifically on nodes. | ||||
| ModerationHandler | class | Drupal\content_moderation\Entity\Handler | core/ |
Common customizations for most/all entities. | 3 | 3 | ||
| ModerationHandlerInterface | interface | Drupal\content_moderation\Entity\Handler | core/ |
Defines operations that need to vary by entity type. | 1 | |||
| ModerationInformation | class | Drupal\content_moderation | core/ |
General service for moderation-related questions about Entity API. | 4 | 2 | ||
| ModerationInformationInterface | interface | Drupal\content_moderation | core/ |
Interface for moderation_information service. | 1 | 16 |
Pagination
- Previous page
- Page 135
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.