Classes, traits, and interfaces - main - drupal

Primary tabs

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
MigrateUserProfileFieldInstanceTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserProfileFieldInstanceTest.php Tests the user profile field instance migration.
MigrateUserProfileFieldInstanceTranslationTest class Drupal\Tests\config_translation\Kernel\Migrate\d6 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateUserProfileFieldInstanceTranslationTest.php Tests the user profile field instance migration.
MigrateUserProfileFieldTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserProfileFieldTest.php Tests the user profile field migration.
MigrateUserProfileTranslationRollbackTest class Drupal\Tests\config_translation\Kernel\Migrate\d6 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateUserProfileTranslationRollbackTest.php Tests rollback of user profile translations.
MigrateUserProfileValuesTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserProfileValuesTest.php User profile values migration.
MigrateUserRoleTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserRoleTest.php Upgrade user roles to user.role.*.yml.
MigrateUserRoleTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserRoleTest.php Upgrade user roles to user.role.*.yml.
MigrateUserSettingsTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserSettingsTest.php Tests migration of user settings.
MigrateUserStubTest class Drupal\Tests\user\Kernel\Migrate core/modules/user/tests/src/Kernel/Migrate/MigrateUserStubTest.php Test stub creation for user entities.
MigrateUserTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserTest.php Users migration.
MigrateUserTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserTest.php Users migration.
MigrateValidatableEntityInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrateValidatableEntityInterface.php To implement by a destination plugin that should provide entity validation. 1 1
MigrateViewModesTest class Drupal\Tests\field\Kernel\Migrate\d7 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateViewModesTest.php Tests migration of D7 view modes. 1
MigrateViewModesTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateViewModesTest.php Migrate view modes.
MigrateVocabularyEntityDisplayTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php Vocabulary entity display migration.
MigrateVocabularyEntityFormDisplayTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityFormDisplayTest.php Vocabulary entity form display migration.
MigrateVocabularyFieldInstanceTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldInstanceTest.php Vocabulary field instance migration.
MigrateVocabularyFieldTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateVocabularyFieldTest.php Vocabulary field migration.
Migration class Drupal\migrate\Plugin core/modules/migrate/src/Plugin/Migration.php Defines the Migration plugin. 6 10
MigrationConfigurationTrait trait Drupal\migrate_drupal core/modules/migrate_drupal/src/MigrationConfigurationTrait.php Configures the appropriate migrations for a given source Drupal database. 6
MigrationConfigurationTraitTest class Drupal\Tests\migrate_drupal\Unit core/modules/migrate_drupal/tests/src/Unit/MigrationConfigurationTraitTest.php Tests Drupal\migrate_drupal\MigrationConfigurationTrait.
MigrationDeriverTrait trait Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrationDeriverTrait.php Provides functionality for migration derivers. 4
MigrationInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrationInterface.php Interface for migrations. 1 143
MigrationLabelExistTest class Drupal\Tests\migrate_drupal_ui\Kernel core/modules/migrate_drupal_ui/tests/src/Kernel/MigrationLabelExistTest.php Tests that labels exist for all migrations.
MigrationLookup class Drupal\migrate\Plugin\migrate\process core/modules/migrate/src/Plugin/migrate/process/MigrationLookup.php Looks up the value of a property based on a previous migration. 1
MigrationLookupTest class Drupal\Tests\migrate\Unit\process core/modules/migrate/tests/src/Unit/process/MigrationLookupTest.php Tests Drupal\migrate\Plugin\migrate\process\MigrationLookup.
MigrationLookupTestCase abstract class Drupal\Tests\migrate\Unit\process core/modules/migrate/tests/src/Unit/process/MigrationLookupTestCase.php Provides container handling for migration lookup unit tests. 1
MigrationPluginConfigurationTest class Drupal\Tests\migrate\Kernel\Plugin core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginConfigurationTest.php Tests the migration plugin manager.
MigrationPluginListTest class Drupal\Tests\migrate\Kernel\Plugin core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginListTest.php Tests the migration plugin manager.
MigrationPluginManager class Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrationPluginManager.php Plugin manager for migration plugins. 1 3 2
MigrationPluginManager class Drupal\migrate_drupal core/modules/migrate_drupal/src/MigrationPluginManager.php Manages migration plugins.
MigrationPluginManagerInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrationPluginManagerInterface.php Migration plugin manager interface. 1 21
MigrationPluginManagerTest class Drupal\Tests\migrate\Unit core/modules/migrate/tests/src/Unit/MigrationPluginManagerTest.php Tests Drupal\migrate\Plugin\MigrationPluginManager.
MigrationPluginManagerTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrationPluginManagerTest.php Tests the migration plugin manager.
MigrationProcessTest class Drupal\Tests\migrate_drupal\Kernel\d6 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrationProcessTest.php Tests the getProcess() method of all Drupal 6 migrations.
MigrationProcessTest class Drupal\Tests\migrate_drupal\Kernel\d7 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrationProcessTest.php Tests the getProcess() method of all Drupal 7 migrations.
MigrationProvidersExistTest class Drupal\Tests\migrate_drupal\Kernel\Plugin core/modules/migrate_drupal/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php Tests that modules exist for all source and destination plugins.
MigrationSourceCacheTest class Drupal\Tests\migrate\Kernel\Plugin\source core/modules/migrate/tests/src/Kernel/Plugin/source/MigrationSourceCacheTest.php Test source counts are correctly cached.
MigrationState class Drupal\migrate_drupal core/modules/migrate_drupal/src/MigrationState.php Determines the migrate state for all modules enabled on the source. 3 2
MigrationStateUnitTest class Drupal\Tests\migrate_drupal\Unit core/modules/migrate_drupal/tests/src/Unit/MigrationStateUnitTest.php Defines a class for testing \Drupal\migrate_drupal\MigrationState.
MigrationTest class Drupal\Tests\migrate\Unit core/modules/migrate/tests/src/Unit/MigrationTest.php Tests Drupal\migrate\Plugin\Migration.
MigrationTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrationTest.php Tests the migration plugin.
MigrationTest class Drupal\Tests\migrate\Kernel\Plugin core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php Tests the migration plugin.
MigrationWithFollowUpInterface interface Drupal\migrate_drupal\Plugin core/modules/migrate_drupal/src/Plugin/MigrationWithFollowUpInterface.php Interface for migrations with follow-up migrations. 2 3
MimeTypeGuesser class Drupal\Core\File\MimeType core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php Defines a MIME type guesser that also supports stream wrapper paths. 1 2
MimeTypeGuesser class Drupal\Core\ProxyClass\File\MimeType core/lib/Drupal/Core/ProxyClass/File/MimeType/MimeTypeGuesser.php Provides a proxy class for \Drupal\Core\File\MimeType\MimeTypeGuesser.
MimeTypeMap class Drupal\Core\File\MimeType core/lib/Drupal/Core/File/MimeType/MimeTypeMap.php Provides a sensible mapping between filename extensions and MIME types. 2
MimeTypeMapFactory class Drupal\Core\File\MimeType core/lib/Drupal/Core/File/MimeType/MimeTypeMapFactory.php Factory for creating the MIME type map.
MimeTypeMapInterface interface Drupal\Core\File\MimeType core/lib/Drupal/Core/File/MimeType/MimeTypeMapInterface.php Provides an interface for MIME type to file extension mapping. 1 4
MimeTypeMapLoadedEvent final class Drupal\Core\File\Event core/lib/Drupal/Core/File/Event/MimeTypeMapLoadedEvent.php Event that is fired when the MIME type map is loaded. 3

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.