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 |
|---|---|---|---|---|---|---|---|---|
| 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. | 3 | 2 | ||
| ModerationInformationInterface | interface | Drupal\content_moderation | core/ |
Interface for moderation_information service. | 1 | 12 | ||
| ModerationInformationTest | class | Drupal\Tests\content_moderation\Unit | core/ |
@coversDefaultClass \Drupal\content_moderation\ModerationInformation[[api-linebreak]] @group content_moderation | ||||
| ModerationInformationTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
@coversDefaultClass \Drupal\content_moderation\ModerationInformation[[api-linebreak]] @group content_moderation | ||||
| ModerationLocaleTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Test content_moderation functionality with localization and translation. | ||||
| ModerationOptOutPublish | class | Drupal\content_moderation\Plugin\Action | core/ |
Alternate action plugin that can opt-out of modifying moderated entities. | 1 | |||
| ModerationOptOutUnpublish | class | Drupal\content_moderation\Plugin\Action | core/ |
Alternate action plugin that can opt-out of modifying moderated entities. | 1 | |||
| ModerationRevisionRevertTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Test revision revert. | ||||
| ModerationStateAccessTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests the view access control handler for moderation state entities. | ||||
| ModerationStateBlockTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests general content moderation workflow for blocks. | ||||
| ModerationStateConstraint | class | Drupal\content_moderation\Plugin\Validation\Constraint | core/ |
Verifies that nodes have a valid moderation state. | ||||
| ModerationStateConstraintValidator | class | Drupal\content_moderation\Plugin\Validation\Constraint | core/ |
Checks if a moderation state transition is valid. | ||||
| ModerationStateField | class | Drupal\content_moderation\Plugin\views\field | core/ |
A field handler for the computed moderation_state field. | ||||
| ModerationStateFieldItemList | class | Drupal\content_moderation\Plugin\Field | core/ |
A computed field that provides a content entity's moderation state. | 2 | |||
| ModerationStateFieldItemListTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
@coversDefaultClass \Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList[[api-linebreak]] | ||||
| ModerationStateFilter | class | Drupal\content_moderation\Plugin\views\filter | core/ |
Provides a filter for the moderation state of an entity. | ||||
| ModerationStateJoinViewsHandlerTrait | trait | Drupal\content_moderation\Plugin\views | core/ |
Assist views handler plugins to join to the content_moderation_state entity. | 3 | |||
| ModerationStateNodeTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests general content moderation workflow for nodes. | ||||
| ModerationStateNodeTypeTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests moderation state node type integration. | ||||
| ModerationStateSort | class | Drupal\content_moderation\Plugin\views\sort | core/ |
Enables sorting for the computed moderation_state field. | ||||
| ModerationStateTaxonomyTermTest | class | Drupal\Tests\content_moderation\Functional | core/ |
Tests the taxonomy term moderation handler. | ||||
| ModerationStateTestBase | abstract class | Drupal\Tests\content_moderation\Functional | core/ |
Defines a base class for moderation state tests. | 9 | |||
| ModerationStateWidget | class | Drupal\content_moderation\Plugin\Field\FieldWidget | core/ |
Plugin implementation of the 'moderation_state_default' widget. | 1 | |||
| ModerationStateWidgetTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
@coversDefaultClass \Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget[[api-linebreak]] @group content_moderation | ||||
| ModifiedResourceResponse | class | Drupal\rest | core/ |
A response that does not contain cacheability metadata. | 4 | |||
| ModifyServiceDefinitionsPass | class | Drupal\Core\DependencyInjection\Compiler | core/ |
Passes the container to the alter() method of all service providers. | 1 | |||
| Module | class | Drupal\Core\Updater | core/ |
Defines a class for updating modules. | ||||
| ModuleAdminLinksHelper | class | Drupal\system | core/ |
Provides a helper for generating module admin links. | 2 | 2 | ||
| ModuleAdminLinksHelperTest | class | Drupal\Tests\system\Kernel | core/ |
Tests the ModuleAdminLinksHelper. | ||||
| ModuleConfigureRouteTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests the configure route for core modules. | ||||
| ModuleDependencyMessageTrait | trait | Drupal\Core\Extension | core/ |
Messages for missing or incompatible dependencies on modules. | 2 | |||
| ModuleExtensionList | class | Drupal\Core\Extension | core/ |
Provides a list of available modules. | 1 | 43 | 2 | |
| ModuleExtensionListTest | class | Drupal\KernelTests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ModuleExtensionList[[api-linebreak]] @group Extension | ||||
| ModuleFilterTest | class | Drupal\Tests\system\FunctionalJavascript | core/ |
Tests the JavaScript functionality of the module filter. | ||||
| ModuleHandler | class | Drupal\Core\Extension | core/ |
Class that manages modules in a Drupal installation. | 4 | 2 | ||
| ModuleHandlerDeprecatedHookTest | class | Drupal\KernelTests\Core\Extension | core/ |
Test whether deprecated hook invocations trigger errors. | ||||
| ModuleHandlerDeprecatedHookUnimplementedTest | class | Drupal\KernelTests\Core\Extension | core/ |
Test whether unimplemented deprecated hook invocations trigger errors. | ||||
| ModuleHandlerInterface | interface | Drupal\Core\Extension | core/ |
Interface for classes that manage a set of enabled modules. | 1 | 217 | ||
| ModuleHandlerTest | class | Drupal\KernelTests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ModuleHandler[[api-linebreak]] | ||||
| ModuleHandlerTest | class | Drupal\Tests\Core\Extension | core/ |
@coversDefaultClass \Drupal\Core\Extension\ModuleHandler[[api-linebreak]] @runTestsInSeparateProcesses | ||||
| ModuleHandlerTest | class | Drupal\Tests\system\Kernel\Extension | core/ |
Tests ModuleHandler functionality. | ||||
| ModuleImplementsAlterTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests hook_module_implements_alter(). | ||||
| ModuleInfoTest | class | Drupal\Tests\Core\Extension | core/ |
Tests that core module info files have the expected keys. | ||||
| ModuleInstallBatchTest | class | Drupal\FunctionalTests\Core\Test | core/ |
Tests batch operations during tests execution. | ||||
| ModuleInstaller | class | Drupal\Core\ProxyClass\Extension | core/ |
Provides a proxy class for \Drupal\Core\Extension\ModuleInstaller. | ||||
| ModuleInstaller | class | Drupal\Core\Extension | core/ |
Default implementation of the module installer. | 2 |
Pagination
- Previous page
- Page 123
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.