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
MigrateSystemSiteTranslationTest class Drupal\Tests\config_translation\Kernel\Migrate\d7 core/modules/config_translation/tests/src/Kernel/Migrate/d7/MigrateSystemSiteTranslationTest.php Migrate multilingual site variables.
MigrateTaxonomyConfigsTest class Drupal\Tests\taxonomy\Kernel\Migrate core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyConfigsTest.php Upgrade variables to taxonomy.settings.yml.
MigrateTaxonomyTermStubTest class Drupal\Tests\taxonomy\Kernel\Migrate core/modules/taxonomy/tests/src/Kernel/Migrate/MigrateTaxonomyTermStubTest.php Test stub creation for taxonomy terms.
MigrateTaxonomyTermTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTaxonomyTermTest.php Upgrade taxonomy terms.
MigrateTaxonomyTermTest class Drupal\Tests\taxonomy\Kernel\Migrate\d7 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php Upgrade taxonomy terms.
MigrateTaxonomyTermTranslationTest class Drupal\Tests\taxonomy\Kernel\Migrate\d7 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTranslationTest.php Test migration of translated taxonomy terms.
MigrateTaxonomyTermTranslationTest class Drupal\Tests\content_translation\Kernel\Migrate\d6 core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateTaxonomyTermTranslationTest.php Test migration of translated taxonomy terms.
MigrateTaxonomyVocabularyTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTaxonomyVocabularyTest.php Migrate taxonomy vocabularies to taxonomy.vocabulary.*.yml.
MigrateTaxonomyVocabularyTest class Drupal\Tests\taxonomy\Kernel\Migrate\d7 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyVocabularyTest.php Migrate taxonomy vocabularies to taxonomy.vocabulary.*.yml.
MigrateTaxonomyVocabularyTranslationTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTaxonomyVocabularyTranslationTest.php Migrate taxonomy vocabularies to taxonomy.vocabulary.*.yml.
MigrateTaxonomyVocabularyTranslationTest class Drupal\Tests\taxonomy\Kernel\Migrate\d7 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyVocabularyTranslationTest.php Migrate taxonomy vocabularies to taxonomy.vocabulary.*.yml.
MigrateTermLocalizedTranslationTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermLocalizedTranslationTest.php Tests migration of localized translated taxonomy terms.
MigrateTermLocalizedTranslationTest class Drupal\Tests\taxonomy\Kernel\Migrate\d7 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTermLocalizedTranslationTest.php Tests migration of localized translated taxonomy terms.
MigrateTermNodeCompleteTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeCompleteTest.php Upgrade taxonomy term node associations.
MigrateTermNodeRevisionTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeRevisionTest.php Upgrade taxonomy term node associations.
MigrateTermNodeTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeTest.php Upgrade taxonomy term node associations.
MigrateTermNodeTranslationTest class Drupal\Tests\taxonomy\Kernel\Migrate\d6 core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeTranslationTest.php Upgrade taxonomy term node associations.
MigrateTestBase abstract class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateTestBase.php Creates abstract base class for migration tests. 20 6
MigrateTestCase abstract class Drupal\Tests\migrate\Unit core/modules/migrate/tests/src/Unit/MigrateTestCase.php Provides setup and helper methods for Migrate module tests. 16 11
MigrateTextConfigsTest class Drupal\Tests\text\Kernel\Migrate core/modules/text/tests/src/Kernel/Migrate/MigrateTextConfigsTest.php Upgrade variables to text.settings.yml.
MigrateThemeSettingsTest class Drupal\Tests\system\Kernel\Migrate\d7 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateThemeSettingsTest.php Tests migration of Theme settings variables to configuration.
MigrateUpdateConfigsTest class Drupal\Tests\update\Kernel\Migrate\d6 core/modules/update/tests/src/Kernel/Migrate/d6/MigrateUpdateConfigsTest.php Upgrade variables to update.settings.yml.
MigrateUpgradeExecuteTestBase abstract class Drupal\Tests\migrate_drupal_ui\Functional core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php Provides a base class for testing a complete upgrade via the UI. 8 8
MigrateUpgradeFormBase abstract class Drupal\migrate_drupal_ui\Form core/modules/migrate_drupal_ui/src/Form/MigrateUpgradeFormBase.php Form base for the Migrate Upgrade UI. 5
MigrateUpgradeFormStepsTest class Drupal\Tests\migrate_drupal_ui\Functional core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeFormStepsTest.php Tests the flow of the Migrate Drupal UI form.
MigrateUpgradeImportBatch class Drupal\migrate_drupal_ui\Batch core/modules/migrate_drupal_ui/src/Batch/MigrateUpgradeImportBatch.php Runs a single migration batch. 1
MigrateUpgradeTestBase abstract class Drupal\Tests\migrate_drupal_ui\Functional core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php Provides a base class for testing migration upgrades in the UI. 6 1
MigrateUploadEntityDisplayTest class Drupal\Tests\file\Kernel\Migrate\d6 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadEntityDisplayTest.php Upload entity display.
MigrateUploadEntityFormDisplayTest class Drupal\Tests\file\Kernel\Migrate\d6 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadEntityFormDisplayTest.php Upload form entity display.
MigrateUploadFieldTest class Drupal\Tests\file\Kernel\Migrate\d6 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadFieldTest.php Uploads migration.
MigrateUploadInstanceTest class Drupal\Tests\file\Kernel\Migrate\d6 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateUploadInstanceTest.php Upload field instance migration.
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.

Other projects


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