Classes, traits, and interfaces - 8.9.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 1511

Name Deprecated Object type Namespace File name Summary Direct uses Use statements Strings
MigrateFilterSettingsTest class Drupal\Tests\filter\Kernel\Migrate\d7 core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterSettingsTest.php Tests migration of Filter's settings to configuration.
MigrateForumConfigsTest class Drupal\Tests\forum\Kernel\Migrate\d6 core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateForumConfigsTest.php Upgrade variables to forum.settings.yml.
MigrateForumSettingsTest class Drupal\Tests\forum\Kernel\Migrate\d7 core/modules/forum/tests/src/Kernel/Migrate/d7/MigrateForumSettingsTest.php Tests migration of Forum's variables to configuration.
MigrateForumTest class Drupal\Tests\forum\Kernel\Migrate\d6 core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateForumTest.php Tests forum migration from Drupal 6 to Drupal 8.
MigrateGlobalThemeSettingsTest class Drupal\Tests\system\Kernel\Migrate\d7 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateGlobalThemeSettingsTest.php Tests migration of global theme settings variables to configuration.
MigrateIdMapInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrateIdMapInterface.php Defines an interface for migrate ID mappings. 2 37
MigrateIdMapMessageEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigrateIdMapMessageEvent.php Wraps an idmap message event for event listeners. 4
MigrateImageCacheTest class Drupal\Tests\image\Kernel\Migrate\d6 core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageCacheTest.php Tests migration of ImageCache presets to image styles.
MigrateImageSettingsTest class Drupal\Tests\image\Kernel\Migrate\d7 core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageSettingsTest.php Tests migration of Image variables to configuration.
MigrateImageStylesTest class Drupal\Tests\image\Kernel\Migrate\d7 core/modules/image/tests/src/Kernel/Migrate/d7/MigrateImageStylesTest.php Test image styles migration to config entities.
MigrateImageTest class Drupal\Tests\image\Kernel\Migrate\d6 core/modules/image/tests/src/Kernel/Migrate/d6/MigrateImageTest.php Image migration test.
MigrateImportEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigrateImportEvent.php Wraps a pre- or post-import event for event listeners. 6
MigrateImportEventTest class Drupal\Tests\migrate\Unit\Event core/modules/migrate/tests/src/Unit/Event/MigrateImportEventTest.php @coversDefaultClass \Drupal\migrate\Event\MigrateImportEvent @group migrate
MigrateInterruptionTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php Tests interruptions triggered during migrations.
MigrateLanguageContentCommentSettingsNoEntityTranslationTest class Drupal\Tests\language\Kernel\Migrate\d7 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsNoEntityTranslationTest.php Tests language content comment settings migration with no entity translation.
MigrateLanguageContentCommentSettingsTest class Drupal\Tests\language\Kernel\Migrate\d6 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentCommentSettingsTest.php Tests migration of language content comment settings.
MigrateLanguageContentCommentSettingsTest class Drupal\Tests\language\Kernel\Migrate\d7 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentCommentSettingsTest.php Tests migration of language comment settings.
MigrateLanguageContentMenuSettingsTest class Drupal\Tests\language\Kernel\Migrate\d6 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentMenuSettingsTest.php Tests migration of the ability to translate menu content.
MigrateLanguageContentSettingsTest class Drupal\Tests\language\Kernel\Migrate\d6 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentSettingsTest.php Tests migration of language content setting variables, language_content_type_$type, i18n_node_options_* and i18n_lock_node_*.
MigrateLanguageContentSettingsTest class Drupal\Tests\language\Kernel\Migrate\d7 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentSettingsTest.php Tests migration of language content setting variables, language_content_type_$type, i18n_node_options_* and i18n_lock_node_*.
MigrateLanguageContentTaxonomyVocabularySettingsTest class Drupal\Tests\language\Kernel\Migrate\d6 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageContentTaxonomyVocabularySettingsTest.php Tests migration of i18ntaxonomy vocabulary settings.
MigrateLanguageContentTaxonomyVocabularySettingsTest class Drupal\Tests\language\Kernel\Migrate\d7 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentTaxonomyVocabularySettingsTest.php Tests migration of i18ntaxonomy vocabulary settings.
MigrateLanguageNegotiationSettingsTest class Drupal\Tests\language\Kernel\Migrate\d6 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageNegotiationSettingsTest.php Tests the migration of language negotiation and language types.
MigrateLanguageNegotiationSettingsTest class Drupal\Tests\language\Kernel\Migrate\d7 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageNegotiationSettingsTest.php Tests the migration of language negotiation.
MigrateLanguageTest class Drupal\Tests\language\Kernel\Migrate\d6 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateLanguageTest.php @group migrate_drupal_6
MigrateLinkDomainSettingFromRestToHalUpdateTest class Drupal\Tests\hal\Functional\Update core/modules/hal/tests/src/Functional/Update/MigrateLinkDomainSettingFromRestToHalUpdateTest.php 'link_domain' is migrated from 'rest.settings' to 'hal.settings'.
MigrateLocaleConfigsTest class Drupal\Tests\locale\Kernel\Migrate core/modules/locale/tests/src/Kernel/Migrate/MigrateLocaleConfigsTest.php Upgrade variables to locale.settings.yml.
MigrateLookup class Drupal\migrate core/modules/migrate/src/MigrateLookup.php Provides a migration lookup service. 1 2
MigrateLookupInterface interface Drupal\migrate core/modules/migrate/src/MigrateLookupInterface.php Provides an interface for the migration lookup service. 1 13
MigrateLookupTest class Drupal\Tests\migrate\Unit core/modules/migrate/tests/src/Unit/MigrateLookupTest.php Provides unit testing for the migration lookup service.
MigrateLookupTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateLookupTest.php Tests the Migrate Lookup service.
MigrateMapDeleteEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigrateMapDeleteEvent.php Wraps a migrate map delete event for event listeners. 3
MigrateMapSaveEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigrateMapSaveEvent.php Wraps a migrate map save event for event listeners. 3
MigrateMenuLinkContentStubTest class Drupal\Tests\menu_link_content\Kernel\Migrate core/modules/menu_link_content/tests/src/Kernel/Migrate/MigrateMenuLinkContentStubTest.php Test stub creation for menu link content entities.
MigrateMenuLinkTest class Drupal\Tests\menu_link_content\Kernel\Migrate\d6 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTest.php Menu link migration.
MigrateMenuLinkTest class Drupal\Tests\menu_link_content\Kernel\Migrate\d7 core/modules/menu_link_content/tests/src/Kernel/Migrate/d7/MigrateMenuLinkTest.php Menu link migration.
MigrateMenuLinkTranslationTest class Drupal\Tests\menu_link_content\Kernel\Migrate\d6 core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTranslationTest.php Menu link migration.
MigrateMenuSettingsTest class Drupal\Tests\menu_ui\Kernel\Migrate core/modules/menu_ui/tests/src/Kernel/Migrate/MigrateMenuSettingsTest.php Tests migration of menu_ui settings.
MigrateMenuTest class Drupal\Tests\system\Kernel\Migrate\d6 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateMenuTest.php Upgrade menus to system.menu.*.yml.
MigrateMenuTest class Drupal\Tests\system\Kernel\Migrate\d7 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateMenuTest.php Upgrade menus to system.menu.*.yml.
MigrateMessage class Drupal\migrate core/modules/migrate/src/MigrateMessage.php Defines a migrate message class. 1
MigrateMessageCapture class Drupal\migrate_drupal_ui\Batch core/modules/migrate_drupal_ui/src/Batch/MigrateMessageCapture.php Allows capturing messages rather than displaying them directly.
MigrateMessageInterface interface Drupal\migrate core/modules/migrate/src/MigrateMessageInterface.php 4 11
MigrateMessageTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php Tests whether idmap messages are sent to message interface when requested.
MigrateNodeBundleSettingsTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeBundleSettingsTest.php Test migrating node settings into the base_field_bundle_override config entity.
MigrateNodeCompleteTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeCompleteTest.php Test class for a complete node migration for Drupal 6.
MigrateNodeCompleteTest class Drupal\Tests\node\Kernel\Migrate\d7 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeCompleteTest.php Test class for a complete node migration for Drupal 7.
MigrateNodeConfigsTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeConfigsTest.php Upgrade variables to node.settings.yml.
MigrateNodeCounterTest class Drupal\Tests\statistics\Kernel\Migrate\d6 core/modules/statistics/tests/src/Kernel/Migrate/d6/MigrateNodeCounterTest.php Tests the migration of node counter data to Drupal 8.
MigrateNodeCounterTest class Drupal\Tests\statistics\Kernel\Migrate\d7 core/modules/statistics/tests/src/Kernel/Migrate/d7/MigrateNodeCounterTest.php Tests the migration of node counter data to Drupal 8.

Other projects


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