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 |
|---|---|---|---|---|---|---|---|---|
| MessageTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests built-in message theme functions. | ||||
| MessageTest | class | Drupal\Tests\contact\Functional\Jsonapi | core/ |
JSON:API integration test for the "Message" content entity type. | ||||
| MessageViewBuilder | class | Drupal\contact | core/ |
Render controller for contact messages. | 1 | |||
| MessageXmlAnonTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Message Xml Anon. | ||||
| MessageXmlBasicAuthTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Message Xml Basic Auth. | ||||
| MessageXmlCookieTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
Tests Message Xml Cookie. | ||||
| Messenger | class | Drupal\Core\Messenger | core/ |
The messenger service. | 1 | 2 | ||
| MessengerInterface | interface | Drupal\Core\Messenger | core/ |
Stores runtime messages sent out to individual users on the page. | 1 | 81 | ||
| MessengerTest | class | Drupal\KernelTests\Core\Messenger | core/ |
Tests Drupal\Core\Messenger\Messenger. | ||||
| MessengerTrait | trait | Drupal\Core\Messenger | core/ |
Provides a trait for the messenger service. | 8 | |||
| MetadataBag | class | Drupal\Core\Session | core/ |
Provides a container for application specific session metadata. | 4 | 2 | ||
| MetadataBagTest | class | Drupal\Tests\Core\Session | core/ |
Tests Drupal\Core\Session\MetadataBag. | ||||
| MetadataBubblingUrlGenerator | class | Drupal\Core\Render | core/ |
Decorator for the URL generator, which bubbles bubbleable URL metadata. | 4 | 2 | ||
| MetadataBubblingUrlGeneratorTest | class | Drupal\Tests\Core\Render | core/ |
Confirm that the MetadataBubblingUrlGenerator is functioning properly. | ||||
| MetaEventSubscriber | class | Drupal\jsonapi_test_meta_events\EventSubscriber | core/ |
Event subscriber which tests adding metadata to ResourceObjects and relationships. | 2 | |||
| MetapackageUpdateTest | class | Drupal\Tests\Composer\Generator | core/ |
Test to see if the metapackages are up-to-date with the root composer.lock. | ||||
| MethodCallable | class | Drupal\Tests\Core\Utility | core/ |
A test class with callable methods. | ||||
| MethodFilter | class | Drupal\Core\Routing | core/ |
Filters routes based on the HTTP method. | 1 | 2 | ||
| MethodFilterTest | class | Drupal\Tests\Core\Routing | core/ |
Tests Drupal\Core\Routing\MethodFilter. | ||||
| MethodRouteCondition | class | Drupal\Tests\Core\Routing | core/ |
Test class. | ||||
| MethodRouteLocale | class | Drupal\Tests\Core\Routing | core/ |
Test class. | ||||
| MethodRouteLocalizedPaths | class | Drupal\Tests\Core\Routing | core/ |
Test class. | ||||
| MethodRouteMissingName | class | Drupal\Tests\Core\Routing | core/ |
Test class. | ||||
| MigrateAccessCheck | class | Drupal\migrate_drupal_ui | core/ |
Checks access for migrate_drupal_ui routes. | ||||
| MigrateAccessTest | class | Drupal\Tests\migrate_drupal_ui\Functional | core/ |
Tests that only user 1 can access the migrate UI. | ||||
| MigrateActionConfigsTest | class | Drupal\Tests\system\Kernel\Migrate\d7 | core/ |
Upgrade variables to null. | ||||
| MigrateActionConfigsTest | class | Drupal\Tests\system\Kernel\Migrate\d6 | core/ |
Upgrade variables to null. | ||||
| MigrateActionsTest | class | Drupal\Tests\system\Kernel\Migrate\d6 | core/ |
Tests migration of action items. | ||||
| MigrateActionsTest | class | Drupal\Tests\system\Kernel\Migrate\d7 | core/ |
Tests migration of action items. | ||||
| MigrateBlockContentBodyFieldTest | class | Drupal\Tests\block_content\Kernel\Migrate | core/ |
Attaches a body field to the block type. | ||||
| MigrateBlockContentEntityDisplayTest | class | Drupal\Tests\block_content\Kernel\Migrate | core/ |
Tests migration of block content body field display configuration. | ||||
| MigrateBlockContentEntityFormDisplayTest | class | Drupal\Tests\block_content\Kernel\Migrate | core/ |
Tests migration of block content body field form display configuration. | ||||
| MigrateBlockContentStubTest | class | Drupal\Tests\block_content\Kernel\Migrate | core/ |
Test stub creation for block_content entities. | ||||
| MigrateBlockContentTest | class | Drupal\Tests\block_content\Kernel\Migrate\d6 | core/ |
Upgrade content blocks. | ||||
| MigrateBlockContentTranslationTest | class | Drupal\Tests\block\Kernel\Migrate\d6 | core/ |
Tests migration of i18n block translations. | ||||
| MigrateBlockContentTranslationTest | class | Drupal\Tests\block\Kernel\Migrate\d7 | core/ |
Tests migration of i18n block translations. | ||||
| MigrateBlockContentTypeTest | class | Drupal\Tests\block_content\Kernel\Migrate | core/ |
Tests migration of the basic block content type. | ||||
| MigrateBlockedIpsTest | class | Drupal\Tests\ban\Kernel\Migrate\d7 | core/ |
Migrate blocked IPs. | ||||
| MigrateBlockNoBlockContentTest | class | Drupal\Tests\block\Kernel\Migrate\d7 | core/ |
Tests the migration of blocks without Block Content installed. | ||||
| MigrateBlockTest | class | Drupal\Tests\block\Kernel\Migrate\d6 | core/ |
Tests migration of blocks to configuration entities. | ||||
| MigrateBlockTest | class | Drupal\Tests\block\Kernel\Migrate\d7 | core/ |
Tests migration of blocks to configuration entities. | ||||
| MigrateBuildDependencyInterface | interface | Drupal\migrate | core/ |
Interface for migration plugin manager for building dependencies. | 1 | 1 | ||
| MigrateBundleTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests setting of bundles on content entity migrations. | ||||
| MigrateCommentEntityDisplayTest | class | Drupal\Tests\comment\Kernel\Migrate\d6 | core/ |
Tests the migration of comment entity displays from Drupal 6. | ||||
| MigrateCommentEntityDisplayTest | class | Drupal\Tests\comment\Kernel\Migrate\d7 | core/ |
Tests the migration of comment entity displays from Drupal 7. | ||||
| MigrateCommentEntityFormDisplaySubjectTest | class | Drupal\Tests\comment\Kernel\Migrate\d6 | core/ |
Tests the migration of comment form's subject display from Drupal 6. | ||||
| MigrateCommentEntityFormDisplaySubjectTest | class | Drupal\Tests\comment\Kernel\Migrate\d7 | core/ |
Tests the migration of comment form's subject display from Drupal 7. | ||||
| MigrateCommentEntityFormDisplayTest | class | Drupal\Tests\comment\Kernel\Migrate\d6 | core/ |
Tests the migration of comment form display from Drupal 6. | ||||
| MigrateCommentEntityFormDisplayTest | class | Drupal\Tests\comment\Kernel\Migrate\d7 | core/ |
Tests the migration of comment form display from Drupal 7. | ||||
| MigrateCommentFieldInstanceTest | class | Drupal\Tests\comment\Kernel\Migrate\d6 | core/ |
Tests the migration of comment field instances from Drupal 6. |
Pagination
- Previous page
- Page 132
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.