Classes, traits, and interfaces - 8.9.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 1511
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
MessageJsonCookieTest | class | Drupal\Tests\contact\Functional\Rest | core/ |
@group rest | ||||
MessagePlugin | class | Drupal\Composer\Plugin\ProjectMessage | composer/ |
A Composer plugin to display a message after creating a project. | ||||
MessageResourceTestBase | abstract class | Drupal\Tests\contact\Functional\Rest | core/ |
8 | 2 | |||
MessageResourceTestBase | in drupal:8.6.0 and is removed from drupal:9.0.0. Use Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase instead. |
abstract class | Drupal\Tests\rest\Functional\EntityResource\Message | core/ |
||||
Messages | class | Drupal\views\Plugin\views\area | core/ |
Provides an area for messages. | 1 | |||
MessagesBlockPluginInterface | interface | Drupal\Core\Block | core/ |
The interface for "messages" (#type => status_messages) blocks. | 1 | 2 | ||
MessagesTest | class | Drupal\Tests\views\Unit\Plugin\area | core/ |
@coversDefaultClass \Drupal\views\Plugin\views\area\Messages @group views | ||||
MessageTest | class | Drupal\Tests\jsonapi\Functional | core/ |
JSON:API integration test for the "Message" content entity type. | ||||
MessageTest | class | Drupal\KernelTests\Core\Theme | core/ |
Tests built-in message theme functions. | ||||
MessageViewBuilder | class | Drupal\contact | core/ |
Render controller for contact messages. | ||||
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. | 1 | 2 | ||
MessengerInterface | interface | Drupal\Core\Messenger | core/ |
Stores runtime messages sent out to individual users on the page. | 2 | 49 | ||
MessengerLegacyTest | class | Drupal\KernelTests\Core\Messenger | core/ |
@group Messenger @group legacy | ||||
MessengerTest | class | Drupal\KernelTests\Core\Messenger | core/ |
@group Messenger @coversDefaultClass \Drupal\Core\Messenger\Messenger | ||||
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. | 1 | 2 | ||
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 @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\action\Kernel\Migrate\d6 | core/ |
Upgrade variables to null. | ||||
MigrateActionConfigsTest | class | Drupal\Tests\action\Kernel\Migrate\d7 | core/ |
Upgrade variables to null. | ||||
MigrateActionsTest | class | Drupal\Tests\action\Kernel\Migrate\d6 | core/ |
Tests migration of action items. | ||||
MigrateActionsTest | class | Drupal\Tests\action\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. |
Pagination
- Previous page
- Page 107
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.