Classes, traits, and interfaces - 9.5.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 1523
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
MessageXmlAnonTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
@group rest | ||||
MessageXmlBasicAuthTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
@group rest | ||||
MessageXmlCookieTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
@group rest | ||||
Messenger | class | Drupal\Core\Messenger | core/ |
The messenger service. | 2 | |||
MessengerInterface | interface | Drupal\Core\Messenger | core/ |
Stores runtime messages sent out to individual users on the page. | 1 | 50 | ||
MessengerTest | class | Drupal\KernelTests\Core\Messenger | core/ |
@group Messenger @coversDefaultClass \Drupal\Core\Messenger\Messenger[[api-linebreak]] | ||||
MessengerTrait | trait | Drupal\Core\Messenger | core/ |
Provides a trait for the messenger service. | 9 | |||
MetadataBag | class | Drupal\Core\Session | core/ |
Provides a container for application specific session metadata. | 3 | 2 | ||
MetadataBagTest | class | Drupal\Tests\Core\Session | core/ |
@coversDefaultClass \Drupal\Core\Session\MetadataBag[[api-linebreak]] @group Session | ||||
MetadataBubblingUrlGenerator | class | Drupal\Core\Render | core/ |
Decorator for the URL generator, which bubbles bubbleable URL metadata. | 1 | 2 | ||
MetadataBubblingUrlGeneratorTest | class | Drupal\Tests\Core\Render | core/ |
Confirm that the MetadataBubblingUrlGenerator is functioning properly. | ||||
MetadataGenerator | class | Drupal\quickedit | core/ |
Generates in-place editing metadata for an entity field. | 2 | 2 | ||
MetadataGeneratorInterface | interface | Drupal\quickedit | core/ |
Interface for generating in-place editing metadata. | 1 | |||
MetadataGeneratorTest | class | Drupal\Tests\quickedit\Kernel | core/ |
Tests in-place field editing metadata. | ||||
MetapackageUpdateTest | class | Drupal\Tests\Composer\Generator | core/ |
Test to see if the metapackages are up-to-date with the root composer.lock. | ||||
MethodFilter | class | Drupal\Core\Routing | core/ |
Filters routes based on the HTTP method. | 1 | 2 | ||
MethodFilterTest | class | Drupal\Tests\Core\Routing | core/ |
@coversDefaultClass \Drupal\Core\Routing\MethodFilter[[api-linebreak]] @group Routing | ||||
MethodRequires | class | Drupal\BuildTests\Framework\Tests | core/ |
|||||
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\d6 | core/ |
Upgrade variables to null. | ||||
MigrateActionConfigsTest | class | Drupal\Tests\system\Kernel\Migrate\d7 | 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. | ||||
MigrateAggregatorConfigsTest | class | Drupal\Tests\aggregator\Kernel\Migrate\d6 | core/ |
Upgrade variables to aggregator.settings.yml. | ||||
MigrateAggregatorFeedTest | class | Drupal\Tests\aggregator\Kernel\Migrate\d6 | core/ |
Tests migration of aggregator feeds. | ||||
MigrateAggregatorFeedTest | class | Drupal\Tests\aggregator\Kernel\Migrate\d7 | core/ |
Test migration to aggregator_feed entities. | ||||
MigrateAggregatorItemTest | class | Drupal\Tests\aggregator\Kernel\Migrate\d6 | core/ |
Tests migration of aggregator items. | ||||
MigrateAggregatorItemTest | class | Drupal\Tests\aggregator\Kernel\Migrate\d7 | core/ |
Tests migration of aggregator items. | ||||
MigrateAggregatorSettingsTest | class | Drupal\Tests\aggregator\Kernel\Migrate\d7 | core/ |
Tests migration of Aggregator's variables to configuration. | ||||
MigrateAggregatorStubTest | class | Drupal\Tests\aggregator\Kernel\Migrate | core/ |
Test stub creation for aggregator feeds and items. | ||||
MigrateBlockContentBodyFieldTest | class | Drupal\Tests\block_content\Kernel\Migrate | core/ |
Attaches a body field to the custom 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 custom 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. | ||||
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. | ||||
MigrateBlockTest | class | Drupal\Tests\aggregator\Kernel\Migrate\d6 | core/ |
Tests migration of aggregator block. | ||||
MigrateBookConfigsTest | class | Drupal\Tests\book\Kernel\Migrate\d6 | core/ |
Upgrade variables to book.settings.yml. | ||||
MigrateBookConfigsTest | class | Drupal\Tests\book\Kernel\Migrate\d7 | core/ |
Tests the migration of Book settings. | ||||
MigrateBookTest | class | Drupal\Tests\book\Kernel\Migrate\d6 | core/ |
Upgrade book structure. | ||||
MigrateBookTest | class | Drupal\Tests\book\Kernel\Migrate\d7 | core/ |
Tests migration of book structures from Drupal 7. | ||||
MigrateBuildDependencyInterface | interface | Drupal\migrate | core/ |
1 | 1 | |||
MigrateBundleTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests setting of bundles on content entity migrations. | ||||
MigrateColorTest | class | Drupal\Tests\color\Kernel\Migrate\d7 | core/ |
Tests migration of Color variables to configuration. |
Pagination
- Previous page
- Page 108
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.