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 |
---|---|---|---|---|---|---|---|---|
MigrateUserSettingsTest | class | Drupal\Tests\user\Kernel\Migrate\d7 | core/ |
Tests migration of user settings. | ||||
MigrateUserStubTest | class | Drupal\Tests\user\Kernel\Migrate | core/ |
Test stub creation for user entities. | ||||
MigrateUserTest | class | Drupal\Tests\user\Kernel\Migrate\d6 | core/ |
Users migration. | ||||
MigrateUserTest | class | Drupal\Tests\user\Kernel\Migrate\d7 | core/ |
Users migration. | ||||
MigrateValidatableEntityInterface | interface | Drupal\migrate\Plugin | core/ |
To implement by a destination plugin that should provide entity validation. | 1 | 1 | ||
MigrateViewModesTest | class | Drupal\Tests\field\Kernel\Migrate\d7 | core/ |
Tests migration of D7 view modes. | 1 | |||
MigrateViewModesTest | class | Drupal\Tests\node\Kernel\Migrate\d6 | core/ |
Migrate view modes. | ||||
MigrateVocabularyEntityDisplayTest | class | Drupal\Tests\forum\Kernel\Migrate\d6 | core/ |
Vocabulary entity display migration. | ||||
MigrateVocabularyEntityDisplayTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary entity display migration. | ||||
MigrateVocabularyEntityFormDisplayTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary entity form display migration. | ||||
MigrateVocabularyEntityFormDisplayTest | class | Drupal\Tests\forum\Kernel\Migrate\d6 | core/ |
Vocabulary entity form display migration. | ||||
MigrateVocabularyFieldInstanceTest | class | Drupal\Tests\forum\Kernel\Migrate\d6 | core/ |
Vocabulary field instance migration. | ||||
MigrateVocabularyFieldInstanceTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary field instance migration. | ||||
MigrateVocabularyFieldTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary field migration. | ||||
MigrateVocabularyFieldTest | class | Drupal\Tests\forum\Kernel\Migrate\d6 | core/ |
Vocabulary field migration. | ||||
Migration | class | Drupal\migrate\Plugin | core/ |
Defines the Migration plugin. | 6 | 7 | ||
MigrationConfigurationTrait | trait | Drupal\migrate_drupal | core/ |
Configures the appropriate migrations for a given source Drupal database. | 6 | |||
MigrationConfigurationTraitTest | class | Drupal\Tests\migrate_drupal\Unit | core/ |
@coversDefaultClass \Drupal\migrate_drupal\MigrationConfigurationTrait[[api-linebreak]] @group migrate_drupal | ||||
MigrationDeriverTrait | trait | Drupal\migrate\Plugin | core/ |
Provides functionality for migration derivers. | 4 | |||
MigrationInterface | interface | Drupal\migrate\Plugin | core/ |
Interface for migrations. | 1 | 148 | ||
MigrationLabelExistTest | class | Drupal\Tests\migrate_drupal_ui\Kernel | core/ |
Tests that labels exist for all migrations. | ||||
MigrationLookup | class | Drupal\migrate\Plugin\migrate\process | core/ |
Looks up the value of a property based on a previous migration. | 1 | |||
MigrationLookupTest | class | Drupal\Tests\migrate\Unit\process | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\MigrationLookup[[api-linebreak]] @group migrate | ||||
MigrationLookupTestCase | abstract class | Drupal\Tests\migrate\Unit\process | core/ |
Provides container handling for migration lookup unit tests. | 1 | |||
MigrationPluginConfigurationTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the migration plugin manager. | ||||
MigrationPluginListTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the migration plugin manager. | ||||
MigrationPluginManager | class | Drupal\migrate\Plugin | core/ |
Plugin manager for migration plugins. | 1 | 3 | 2 | |
MigrationPluginManager | class | Drupal\migrate_drupal | core/ |
Manages migration plugins. | ||||
MigrationPluginManagerInterface | interface | Drupal\migrate\Plugin | core/ |
Migration plugin manager interface. | 1 | 18 | ||
MigrationPluginManagerTest | class | Drupal\Tests\migrate\Unit | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\MigrationPluginManager[[api-linebreak]] @group migrate | ||||
MigrationPluginManagerTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the migration plugin manager. | ||||
MigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests the getProcess() method of all Drupal 6 migrations. | ||||
MigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Tests the getProcess() method of all Drupal 7 migrations. | ||||
MigrationProvidersExistTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests that modules exist for all source and destination plugins. | ||||
MigrationSourceCacheTest | class | Drupal\Tests\migrate\Kernel\Plugin\source | core/ |
Test source counts are correctly cached. | ||||
MigrationState | class | Drupal\migrate_drupal | core/ |
Determines the migrate state for all modules enabled on the source. | 3 | 2 | ||
MigrationStateUnitTest | class | Drupal\Tests\migrate_drupal\Unit | core/ |
Defines a class for testing \Drupal\migrate_drupal\MigrationState. | ||||
MigrationTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the migration plugin. | ||||
MigrationTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the migration plugin. | ||||
MigrationTest | class | Drupal\Tests\migrate\Unit | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\Migration[[api-linebreak]] | ||||
MigrationWithFollowUpInterface | interface | Drupal\migrate_drupal\Plugin | core/ |
Interface for migrations with follow-up migrations. | 2 | 3 | ||
MimeTypeGuesser | class | Drupal\Core\File\MimeType | core/ |
Defines a MIME type guesser that also supports stream wrapper paths. | 2 | 2 | ||
MimeTypeGuesser | class | Drupal\Core\ProxyClass\File\MimeType | core/ |
Provides a proxy class for \Drupal\Core\File\MimeType\MimeTypeGuesser. | ||||
MimeTypeTest | class | Drupal\KernelTests\Core\File | core/ |
Tests filename mimetype detection. | ||||
Mini | class | Drupal\views\Plugin\views\pager | core/ |
The plugin to handle mini pager. | ||||
MinimalInstallerTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests the interactive installer installing the minimal profile. | ||||
MinimalTest | class | Drupal\Tests\minimal\Functional | core/ |
Tests Minimal installation profile expectations. | ||||
MiniPagerTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the mini pager plugin. | ||||
MissingBundleClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if a bundle class does not exist. | 2 | |||
MissingContentEvent | class | Drupal\Core\Config\Importer | core/ |
Wraps a configuration event for event listeners. | 2 |
Pagination
- Previous page
- Page 121
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.