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
MigrateCommentEntityDisplayTest class Drupal\Tests\comment\Kernel\Migrate\d6 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityDisplayTest.php Tests the migration of comment entity displays from Drupal 6.
MigrateCommentEntityDisplayTest class Drupal\Tests\comment\Kernel\Migrate\d7 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityDisplayTest.php Tests the migration of comment entity displays from Drupal 7.
MigrateCommentEntityFormDisplaySubjectTest class Drupal\Tests\comment\Kernel\Migrate\d6 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplaySubjectTest.php Tests the migration of comment form's subject display from Drupal 6.
MigrateCommentEntityFormDisplaySubjectTest class Drupal\Tests\comment\Kernel\Migrate\d7 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplaySubjectTest.php Tests the migration of comment form's subject display from Drupal 7.
MigrateCommentEntityFormDisplayTest class Drupal\Tests\comment\Kernel\Migrate\d6 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplayTest.php Tests the migration of comment form display from Drupal 6.
MigrateCommentEntityFormDisplayTest class Drupal\Tests\comment\Kernel\Migrate\d7 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplayTest.php Tests the migration of comment form display from Drupal 7.
MigrateCommentFieldInstanceTest class Drupal\Tests\comment\Kernel\Migrate\d6 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldInstanceTest.php Tests the migration of comment field instances from Drupal 6.
MigrateCommentFieldInstanceTest class Drupal\Tests\comment\Kernel\Migrate\d7 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldInstanceTest.php Tests the migration of comment field instances from Drupal 7.
MigrateCommentFieldTest class Drupal\Tests\comment\Kernel\Migrate\d6 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentFieldTest.php Tests the migration of comment fields from Drupal 6.
MigrateCommentFieldTest class Drupal\Tests\comment\Kernel\Migrate\d7 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentFieldTest.php Tests the migration of comment fields from Drupal 7.
MigrateCommentStubTest class Drupal\Tests\comment\Kernel\Migrate core/modules/comment/tests/src/Kernel/Migrate/MigrateCommentStubTest.php Test stub creation for comment entities.
MigrateCommentTest class Drupal\Tests\comment\Kernel\Migrate\d6 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTest.php Tests the migration of comments from Drupal 6.
MigrateCommentTest class Drupal\Tests\comment\Kernel\Migrate\d7 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTest.php Tests the migration of comments from Drupal 7.
MigrateCommentTypeTest class Drupal\Tests\comment\Kernel\Migrate\d6 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php Tests the migration of comment types from Drupal 6.
MigrateCommentTypeTest class Drupal\Tests\comment\Kernel\Migrate\d7 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php Tests the migration of comment types from Drupal 7.
MigrateConfigRollbackTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateConfigRollbackTest.php Tests rolling back of configuration objects.
MigrateContactCategoryTest class Drupal\Tests\contact\Kernel\Migrate core/modules/contact/tests/src/Kernel/Migrate/MigrateContactCategoryTest.php Migrate contact categories to contact.form.*.yml.
MigrateContactSettingsTest class Drupal\Tests\contact\Kernel\Migrate\d6 core/modules/contact/tests/src/Kernel/Migrate/d6/MigrateContactSettingsTest.php Upgrade variables to contact.settings.yml.
MigrateContactSettingsTest class Drupal\Tests\contact\Kernel\Migrate\d7 core/modules/contact/tests/src/Kernel/Migrate/d7/MigrateContactSettingsTest.php Tests migration of Contact settings to configuration.
MigrateController class Drupal\migrate_drupal_ui\Controller core/modules/migrate_drupal_ui/src/Controller/MigrateController.php Provides controller methods for the migration.
MigrateControllerTest class Drupal\Tests\migrate_drupal_ui\Functional core/modules/migrate_drupal_ui/tests/src/Functional/MigrateControllerTest.php Tests for the MigrateController class.
MigrateCustomBlockContentTranslationTest class Drupal\Tests\block_content\Kernel\Migrate\d6 core/modules/block_content/tests/src/Kernel/Migrate/d6/MigrateCustomBlockContentTranslationTest.php Tests migration of i18n custom block strings.
MigrateCustomBlockContentTranslationTest class Drupal\Tests\block_content\Kernel\Migrate\d7 core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockContentTranslationTest.php Tests migration of i18n custom block strings.
MigrateCustomBlockTest class Drupal\Tests\block_content\Kernel\Migrate\d7 core/modules/block_content/tests/src/Kernel/Migrate/d7/MigrateCustomBlockTest.php Tests migration of custom blocks.
MigrateDateFormatTest class Drupal\Tests\system\Kernel\Migrate\d6 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateDateFormatTest.php Upgrade date formats to core.date_format.*.yml.
MigrateDblogConfigsTest class Drupal\Tests\dblog\Kernel\Migrate\d6 core/modules/dblog/tests/src/Kernel/Migrate/d6/MigrateDblogConfigsTest.php Upgrade variables to dblog.settings.yml.
MigrateDblogConfigsTest class Drupal\Tests\dblog\Kernel\Migrate\d7 core/modules/dblog/tests/src/Kernel/Migrate/d7/MigrateDblogConfigsTest.php Upgrade variables to dblog.settings.yml.
MigrateDefaultLanguageTest class Drupal\Tests\language\Kernel\Migrate\d6 core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php Tests the default language variable migration.
MigrateDefaultLanguageTest class Drupal\Tests\language\Kernel\Migrate\d7 core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php Tests the default language variable migration.
MigrateDependenciesTest class Drupal\Tests\migrate_drupal\Kernel\dependencies core/modules/migrate_drupal/tests/src/Kernel/dependencies/MigrateDependenciesTest.php Ensure the consistency among the dependencies for migrate.
MigrateDependenciesTest class Drupal\Tests\aggregator\Kernel\Migrate\d6 core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateDependenciesTest.php Ensure the consistency among the dependencies for migrate.
MigrateDestination class Drupal\migrate\Annotation core/modules/migrate/src/Annotation/MigrateDestination.php Defines a migration destination plugin annotation object.
MigrateDestinationInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrateDestinationInterface.php Defines an interface for Migration Destination classes. 2 6
MigrateDestinationPluginManager class Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrateDestinationPluginManager.php Plugin manager for migrate destination plugins. 1 2
MigrateDrupal6AuditIdsTest class Drupal\Tests\aggregator\Kernel\Migrate\d6 core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateDrupal6AuditIdsTest.php Tests that aggregator Id conflicts are discovered.
MigrateDrupal6AuditIdsTest class Drupal\Tests\migrate_drupal\Kernel\d6 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php Tests the migration auditor for ID conflicts.
MigrateDrupal6TestBase abstract class Drupal\Tests\migrate_drupal\Kernel\d6 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php Base class for Drupal 6 migration tests. 104 98
MigrateDrupal6TestBase abstract class Drupal\Tests\aggregator\Kernel\Migrate\d6 core/modules/aggregator/tests/src/Kernel/Migrate/d6/MigrateDrupal6TestBase.php Base class for Drupal 6 migration tests. 6
MigrateDrupal7AuditIdsTest class Drupal\Tests\aggregator\Kernel\Migrate\d7 core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateDrupal7AuditIdsTest.php Tests the migration auditor for ID conflicts.
MigrateDrupal7AuditIdsTest class Drupal\Tests\migrate_drupal\Kernel\d7 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php Tests the migration auditor for ID conflicts.
MigrateDrupal7TestBase abstract class Drupal\Tests\migrate_drupal\Kernel\d7 core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php Base class for Drupal 7 migration tests. 102 97
MigrateDrupal7TestBase abstract class Drupal\Tests\aggregator\Kernel\Migrate\d7 core/modules/aggregator/tests/src/Kernel/Migrate/d7/MigrateDrupal7TestBase.php Base class for Drupal 7 migration tests. 4
MigrateDrupalServiceProvider class Drupal\migrate_drupal core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php Alters container services.
MigrateDrupalTestBase abstract class Drupal\Tests\migrate_drupal\Kernel core/modules/migrate_drupal/tests/src/Kernel/MigrateDrupalTestBase.php Base class for Drupal migration tests. 21 19
MigrateDrupalTestBase abstract class Drupal\Tests\tracker\Kernel\Migrate\d7 core/modules/tracker/tests/src/Kernel/Migrate/d7/MigrateDrupalTestBase.php Base class for Tracker Drupal 7 migration tests. 3
MigrateDrupalUpdateTest class Drupal\Tests\migrate_drupal\Functional core/modules/migrate_drupal/tests/src/Functional/MigrateDrupalUpdateTest.php Tests that migrate_drupal_multilingual is uninstalled.
MigrateDumpAlterInterface interface Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateDumpAlterInterface.php Allows tests to alter dumps after they have loaded. 5 5
MigrateEmbeddedDataTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateEmbeddedDataTest.php Tests the EmbeddedDataSource plugin.
MigrateEntity class Drupal\migrate\Plugin\Derivative core/modules/migrate/src/Plugin/Derivative/MigrateEntity.php 1
MigrateEntityComplete class Drupal\migrate\Plugin\Derivative core/modules/migrate/src/Plugin/Derivative/MigrateEntityComplete.php Deriver for entity_complete:ENTITY_TYPE entity migrations.

Other projects


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