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 |
|---|---|---|---|---|---|---|---|---|
| ModerationInformationTest | class | Drupal\Tests\content_moderation\Unit | core/ |
Tests Drupal\content_moderation\ModerationInformation. | ||||
| ModerationInformationTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
Tests Drupal\content_moderation\ModerationInformation. | ||||
| 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. | 1 | |||
| 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. | 3 | |||
| ModerationStateFieldItemListTest | class | Drupal\Tests\content_moderation\Kernel | core/ |
Tests Drupal\content_moderation\Plugin\Field\ModerationStateFieldItemList. | ||||
| ModerationStateFilter | class | Drupal\content_moderation\Plugin\views\filter | core/ |
Provides a filter for the moderation state of an entity. | 2 | |||
| 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. | 10 | 1 | ||
| 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/ |
Tests Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget. | ||||
| 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 | |||
| ModuleAdminLinksHelper | class | Drupal\system | core/ |
Provides a helper for generating module admin links. | 3 | 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 | 56 | 2 | |
| ModuleExtensionListTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests Drupal\Core\Extension\ModuleExtensionList. | ||||
| 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. | 6 | 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 | 295 | ||
| ModuleHandlerTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests Drupal\Core\Extension\ModuleHandler. | ||||
| ModuleHandlerTest | class | Drupal\Tests\Core\Extension | core/ |
Tests Drupal\Core\Extension\ModuleHandler. | ||||
| ModuleHandlerTest | class | Drupal\Tests\system\Kernel\Extension | core/ |
Tests ModuleHandler functionality. | ||||
| ModuleHandlerTestAll1Hooks | class | Drupal\module_handler_test_all1\Hook | core/ |
Hook implementations for module_handler_test_all1. | 1 | |||
| ModuleImplementsAlter | class | Drupal\aaa_hook_order_test\Hook | core/ |
Contains a replaceable callback for hook_module_implements_alter(). | ||||
| 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. | ||||
| ModuleInstallConfigTestSubscriber | class | Drupal\module_installer_config_subscriber\EventSubscriber | core/ |
Test subscriber for configuration CRUD event. | ||||
| ModuleInstaller | class | Drupal\Core\Extension | core/ |
Default implementation of the module installer. | 1 | 2 | ||
| ModuleInstallerInterface | interface | Drupal\Core\Extension | core/ |
Provides the installation of modules with creating the db schema and more. | 1 | 18 | ||
| ModuleInstallerTest | class | Drupal\KernelTests\Core\Extension | core/ |
Tests the ModuleInstaller class. | ||||
| ModuleInstallRequirements | class | Drupal\module_install_requirements\Install\Requirements | core/ |
Provides method for checking requirements during install time. | ||||
| ModuleInstallUnmetRequirementsRequirements | class | Drupal\module_install_unmet_requirements\Install\Requirements | core/ |
Provides method for checking requirements during install time. | ||||
| ModulePermissionsLinkHelper | class | Drupal\user | core/ |
Provides a helper for generating module permissions links. | 3 | 2 |
Pagination
- Previous page
- Page 136
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.