Classes, traits, and interfaces - 9.5.x - 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 1523

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
MigrateUploadTest class Drupal\Tests\file\Kernel\Migrate\d6 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadTest.php Migrate association data between nodes and files.
MigrateUrlAliasNoTranslationTest class Drupal\Tests\path\Kernel\Migrate\d7 core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasNoTranslationTest.php Tests URL alias migration.
MigrateUrlAliasTest class Drupal\Tests\path\Kernel\Migrate\d6 core/modules/path/tests/src/Kernel/Migrate/d6/MigrateUrlAliasTest.php URL alias migration.
MigrateUrlAliasTest class Drupal\Tests\path\Kernel\Migrate\d7 core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTest.php Tests URL alias migration.
MigrateUrlAliasTestBase abstract class Drupal\Tests\path\Kernel\Migrate\d7 core/modules/path/tests/src/Kernel/Migrate/d7/MigrateUrlAliasTestBase.php Tests URL alias migration. 2
MigrateUserAdminPassTest class Drupal\Tests\user\Kernel\Migrate core/modules/user/tests/src/Kernel/Migrate/MigrateUserAdminPassTest.php Tests preservation of root account password.
MigrateUserConfigsTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserConfigsTest.php Upgrade variables to user.*.yml.
MigrateUserConfigsTranslationTest class Drupal\Tests\config_translation\Kernel\Migrate\d6 core/modules/config_translation/tests/src/Kernel/Migrate/d6/MigrateUserConfigsTranslationTest.php Upgrade i18n variables to user.*.yml.
MigrateUserConfigsTranslationTest class Drupal\Tests\config_translation\Kernel\Migrate\d7 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateUserConfigsTranslationTest.php Test migration of i18n user variables.
MigrateUserContactSettingsTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserContactSettingsTest.php Users contact settings migration.
MigrateUserFloodTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserFloodTest.php Migrates user flood control configuration.
MigrateUserMailTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserMailTest.php Migrates user mail configuration.
MigrateUserPictureD6FileTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserPictureD6FileTest.php User pictures migration.
MigrateUserPictureEntityDisplayTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityDisplayTest.php User picture entity display.
MigrateUserPictureEntityFormDisplayTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureEntityFormDisplayTest.php Tests migration of the user_picture field's entity form display settings.
MigrateUserPictureFieldInstanceTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldInstanceTest.php User picture field instance migration.
MigrateUserPictureFieldTest class Drupal\Tests\user\Kernel\Migrate\d7 core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserPictureFieldTest.php User picture field migration.
MigrateUserProfileEntityDisplayTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserProfileEntityDisplayTest.php Tests the user profile entity display migration.
MigrateUserProfileEntityFormDisplayTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateUserProfileEntityFormDisplayTest.php Tests the user profile entity form display migration.
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 7
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 @coversDefaultClass \Drupal\migrate_drupal\MigrationConfigurationTrait[[api-linebreak]] @group migrate_drupal
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 138
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 @coversDefaultClass \Drupal\migrate\Plugin\migrate\process\MigrationLookup[[api-linebreak]] @group migrate
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.

Other projects


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