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
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. 101 97
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. 20 17
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 MigrateEntityComplete deriver.
MigrateEntityContentBaseTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateEntityContentBaseTest.php Tests the EntityContentBase destination.
MigrateEntityContentValidationTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateEntityContentValidationTest.php Tests validation of an entity during migration.
MigrateEntityRevision class Drupal\migrate\Plugin\Derivative core/modules/migrate/src/Plugin/Derivative/MigrateEntityRevision.php
MigrateEntityTranslationSettingsTest class Drupal\Tests\content_translation\Kernel\Migrate\d7 core/modules/content_translation/tests/src/Kernel/Migrate/d7/MigrateEntityTranslationSettingsTest.php Tests the migration of entity translation settings.
MigrateEvents final class Drupal\migrate\Event core/modules/migrate/src/Event/MigrateEvents.php Defines events for the migration system. 9
MigrateEventsTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php Tests events fired on migrations.
MigrateException class Drupal\migrate core/modules/migrate/src/MigrateException.php Defines the migrate exception class. 1 64
MigrateExecutable class Drupal\migrate core/modules/migrate/src/MigrateExecutable.php Defines a migrate executable class. 2 35
MigrateExecutableInterface interface Drupal\migrate core/modules/migrate/src/MigrateExecutableInterface.php 1 91
MigrateExecutableMemoryExceededTest class Drupal\Tests\migrate\Unit core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php Tests the \Drupal\migrate\MigrateExecutable::memoryExceeded() method.
MigrateExecutableTest class Drupal\Tests\migrate\Unit core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php @coversDefaultClass \Drupal\migrate\MigrateExecutable @group migrate
MigrateExecutableTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateExecutableTest.php Tests the MigrateExecutable class.
MigrateExternalTranslatedTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateExternalTranslatedTest.php Tests migrating non-Drupal translated content.
MigrateExternalTranslatedTestSource class Drupal\migrate_external_translated_test\Plugin\migrate\source core/modules/migrate/tests/modules/migrate_external_translated_test/src/Plugin/migrate/source/MigrateExternalTranslatedTestSource.php A simple migrate source for our tests.
MigrateField class Drupal\migrate_drupal\Annotation core/modules/migrate_drupal/src/Annotation/MigrateField.php Defines a field plugin annotation object. 1 1 1
MigrateFieldDeprecationTest class Drupal\Tests\Core\Field core/tests/Drupal/Tests/Core/Field/MigrateFieldDeprecationTest.php Test trigger_error is fired when deprecated classes are instantiated.
MigrateFieldFormatterSettingsTest class Drupal\Tests\field\Kernel\Migrate\d6 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php Upgrade field formatter settings to entity.display.*.*.yml.
MigrateFieldFormatterSettingsTest class Drupal\Tests\field\Kernel\Migrate\d7 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php Tests migration of D7 field formatter settings.
MigrateFieldInstanceLabelDescriptionTest class Drupal\Tests\field\Kernel\Migrate\d6 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceLabelDescriptionTest.php Tests migration of field label and description translations.
MigrateFieldInstanceLabelDescriptionTest class Drupal\Tests\field\Kernel\Migrate\d7 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceLabelDescriptionTest.php Tests migration field label and description i18n translations.
MigrateFieldInstanceOptionTranslationTest class Drupal\Tests\field\Kernel\Migrate\d6 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceOptionTranslationTest.php Migrate field instance option translations.
MigrateFieldInstanceTest class Drupal\Tests\field\Kernel\Migrate\d6 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldInstanceTest.php Migrate field instances.
MigrateFieldInstanceTest class Drupal\Tests\field\Kernel\Migrate\d7 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceTest.php Migrates Drupal 7 field instances. 1
MigrateFieldInstanceWidgetSettingsTest class Drupal\Tests\field\Kernel\Migrate\d7 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php Migrate field widget settings.
MigrateFieldInterface interface Drupal\migrate_drupal\Plugin core/modules/migrate_drupal/src/Plugin/MigrateFieldInterface.php Provides an interface for all field type plugins. 2 2
MigrateFieldOptionTranslationTest class Drupal\Tests\field\Kernel\Migrate\d6 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldOptionTranslationTest.php Migrate field option translations.
MigrateFieldOptionTranslationTest class Drupal\Tests\field\Kernel\Migrate\d7 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldOptionTranslationTest.php Migrate field option translations.
MigrateFieldPluginManager class Drupal\migrate_drupal\Plugin core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManager.php Plugin manager for migrate field plugins. 2 2 2
MigrateFieldPluginManagerInterface interface Drupal\migrate_drupal\Plugin core/modules/migrate_drupal/src/Plugin/MigrateFieldPluginManagerInterface.php 2 9
MigrateFieldPluginManagerTest class Drupal\Tests\migrate_drupal\Unit core/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php Tests the MigrateFieldPluginManager class.
MigrateFieldPluginManagerTest class Drupal\Tests\migrate_drupal\Kernel core/modules/migrate_drupal/tests/src/Kernel/MigrateFieldPluginManagerTest.php Tests the field plugin manager.
MigrateFieldPluginManagerTestClass class Drupal\Tests\migrate_drupal\Unit core/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php Class to test MigrateFieldPluginManager.
MigrateFieldTest class Drupal\Tests\field\Kernel\Migrate\d6 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldTest.php Migrate fields.
MigrateFieldTest class Drupal\Tests\field\Kernel\Migrate\d7 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldTest.php Migrates Drupal 7 fields. 1
MigrateFieldWidgetSettingsTest class Drupal\Tests\field\Kernel\Migrate\d6 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldWidgetSettingsTest.php Migrate field widget settings.
MigrateFileConfigsTest class Drupal\Tests\file\Kernel\Migrate\d6 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileConfigsTest.php Upgrade variables to file.settings.yml.
MigrateFileConfigsTest class Drupal\Tests\file\Kernel\Migrate\d7 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileConfigsTest.php Upgrade variables to file.settings.yml.
MigrateFileStubTest class Drupal\Tests\file\Kernel\Migrate core/modules/file/tests/src/Kernel/Migrate/MigrateFileStubTest.php Test stub creation for file entities.
MigrateFileTest class Drupal\Tests\file\Kernel\Migrate\d6 core/modules/file/tests/src/Kernel/Migrate/d6/MigrateFileTest.php Test file migration.
MigrateFileTest class Drupal\Tests\file\Kernel\Migrate\d7 core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileTest.php Migrates all files in the file_managed table.
MigrateFilterFormatTest class Drupal\Tests\filter\Kernel\Migrate\d6 core/modules/filter/tests/src/Kernel/Migrate/d6/MigrateFilterFormatTest.php Upgrade variables to filter.formats.*.yml.
MigrateFilterFormatTest class Drupal\Tests\filter\Kernel\Migrate\d7 core/modules/filter/tests/src/Kernel/Migrate/d7/MigrateFilterFormatTest.php Upgrade variables to filter.formats.*.yml.

Other projects


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