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
MigrateNodeDeriverTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeDeriverTest.php Test D6NodeDeriver.
MigrateNodeDeriverTest class Drupal\Tests\node\Kernel\Migrate\d7 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeDeriverTest.php Test D7NodeDeriver.
MigrateNodeRevisionTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php Node content revisions migration.
MigrateNodeRevisionTest class Drupal\Tests\node\Kernel\Migrate\d7 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php Tests node revision migrations.
MigrateNodeSettingPromoteTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingPromoteTest.php @group migrate_drupal_6
MigrateNodeSettingStatusTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingStatusTest.php @group migrate_drupal_6
MigrateNodeSettingsTest class Drupal\Tests\node\Kernel\Migrate\d7 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeSettingsTest.php Upgrade variables to node.settings config object.
MigrateNodeSettingStickyTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeSettingStickyTest.php @group migrate_drupal_6
MigrateNodeStubTest class Drupal\Tests\node\Kernel\Migrate core/modules/node/tests/src/Kernel/Migrate/MigrateNodeStubTest.php Test stub creation for nodes.
MigrateNodeTaxonomyTest class Drupal\Tests\taxonomy\Kernel\Migrate\d7 core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateNodeTaxonomyTest.php @group taxonomy
MigrateNodeTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTest.php Node content migration.
MigrateNodeTest class Drupal\Tests\node\Kernel\Migrate\d7 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTest.php Tests node migration.
MigrateNodeTestBase abstract class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTestBase.php Base class for Node migration tests. 7 4
MigrateNodeTitleLabelTest class Drupal\Tests\node\Kernel\Migrate\d7 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTitleLabelTest.php Tests migration of the title field label for node types.
MigrateNodeTypeTest class Drupal\Tests\node\Kernel\Migrate\d6 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTypeTest.php Upgrade node types to node.type.*.yml.
MigrateNodeTypeTest class Drupal\Tests\node\Kernel\Migrate\d7 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTypeTest.php Upgrade node types to node.type.*.yml.
MigrateNoMigrateDrupalTest class Drupal\Tests\migrate\Functional core/modules/migrate/tests/src/Functional/MigrateNoMigrateDrupalTest.php Execute migration.
MigrateNullIdMapTest class Drupal\Tests\migrate\Unit core/modules/migrate/tests/src/Unit/MigrateNullIdMapTest.php Tests the NULL ID map plugin.
MigratePluginManager class Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigratePluginManager.php Manages migrate plugins. 3 3 3
MigratePluginManagerInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigratePluginManagerInterface.php 2 1
MigratePostRowSaveEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigratePostRowSaveEvent.php Wraps a post-save event for event listeners. 6
MigratePostRowSaveEventTest class Drupal\Tests\migrate\Unit\Event core/modules/migrate/tests/src/Unit/Event/MigratePostRowSaveEventTest.php @coversDefaultClass \Drupal\migrate\Event\MigratePostRowSaveEvent @group migrate
MigratePreRowSaveEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigratePreRowSaveEvent.php Wraps a pre-save event for event listeners. 1 3
MigratePreRowSaveEventTest class Drupal\Tests\migrate\Unit\Event core/modules/migrate/tests/src/Unit/Event/MigratePreRowSaveEventTest.php @coversDefaultClass \Drupal\migrate\Event\MigratePreRowSaveEvent @group migrate
MigratePrivateFileTest class Drupal\Tests\file\Kernel\Migrate\d7 core/modules/file/tests/src/Kernel/Migrate/d7/MigratePrivateFileTest.php Tests private files migration.
MigrateProcessInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrateProcessInterface.php An interface for migrate process plugins. 1 16
MigrateProcessPlugin class Drupal\migrate\Annotation core/modules/migrate/src/Annotation/MigrateProcessPlugin.php Defines a migration process plugin annotation object. 1
MigrateProcessTestCase abstract class Drupal\Tests\migrate\Unit\process core/modules/migrate/tests/src/Unit/process/MigrateProcessTestCase.php 31 11
MigrateProfileFieldOptionTranslationTest class Drupal\Tests\user\Kernel\Migrate\d6 core/modules/user/tests/src/Kernel/Migrate/d6/MigrateProfileFieldOptionTranslationTest.php Tests field option translations migration.
MigrateRdfMappingTest class Drupal\Tests\rdf\Kernel\Migrate\d7 core/modules/rdf/tests/src/Kernel/Migrate/d7/MigrateRdfMappingTest.php Tests RDF mappings migration from Drupal 7 to 8.
MigrateRollbackEntityConfigTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateRollbackEntityConfigTest.php Tests rolling back of imports.
MigrateRollbackEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigrateRollbackEvent.php Wraps a pre- or post-rollback event for event listeners. 3
MigrateRollbackTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateRollbackTest.php Tests rolling back of imports.
MigrateRowDeleteEvent class Drupal\migrate\Event core/modules/migrate/src/Event/MigrateRowDeleteEvent.php Wraps a row deletion event for event listeners. 2
MigrateSearchPageTest class Drupal\Tests\search\Kernel\Migrate\d6 core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchPageTest.php Upgrade search page variables.
MigrateSearchPageTest class Drupal\Tests\search\Kernel\Migrate\d7 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php Tests migration of search page status and settings.
MigrateSearchSettingsTest class Drupal\Tests\search\Kernel\Migrate\d6 core/modules/search/tests/src/Kernel/Migrate/d6/MigrateSearchSettingsTest.php Upgrade variables to search.settings.yml.
MigrateSearchSettingsTest class Drupal\Tests\search\Kernel\Migrate\d7 core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchSettingsTest.php Tests migration of Search variables to configuration.
MigrateShortcutSetTest class Drupal\Tests\shortcut\Kernel\Migrate\d7 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetTest.php Test shortcut_set migration to ShortcutSet entities.
MigrateShortcutSetUsersTest class Drupal\Tests\shortcut\Kernel\Migrate\d7 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutSetUsersTest.php Test shortcut_set_users migration.
MigrateShortcutStubTest class Drupal\Tests\shortcut\Kernel\Migrate core/modules/shortcut/tests/src/Kernel/Migrate/MigrateShortcutStubTest.php Test stub creation for shortcut entities.
MigrateShortcutTest class Drupal\Tests\shortcut\Kernel\Migrate\d7 core/modules/shortcut/tests/src/Kernel/Migrate/d7/MigrateShortcutTest.php Test shortcut menu links migration to Shortcut entities.
MigrateSimpletestConfigsTest class Drupal\Tests\simpletest\Kernel\Migrate\d6 core/modules/simpletest/tests/src/Kernel/Migrate/d6/MigrateSimpletestConfigsTest.php Upgrade variables to simpletest.settings.yml.
MigrateSimpletestSettingsTest class Drupal\Tests\simpletest\Kernel\Migrate\d7 core/modules/simpletest/tests/src/Kernel/Migrate/d7/MigrateSimpletestSettingsTest.php Tests migration of SimpleTest's variables to configuration.
MigrateSkipProcessException class Drupal\migrate core/modules/migrate/src/MigrateSkipProcessException.php This exception is thrown when the rest of the process should be skipped. 7
MigrateSkipRowException class Drupal\migrate core/modules/migrate/src/MigrateSkipRowException.php This exception is thrown when a row should be skipped. 19
MigrateSkipRowTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateSkipRowTest.php Tests row skips triggered during hook_migrate_prepare_row().
MigrateSource class Drupal\migrate\Annotation core/modules/migrate/src/Annotation/MigrateSource.php Defines a migration source plugin annotation object.
MigrateSourceInterface interface Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrateSourceInterface.php Defines an interface for migrate sources. 2 7
MigrateSourcePluginManager class Drupal\migrate\Plugin core/modules/migrate/src/Plugin/MigrateSourcePluginManager.php Plugin manager for migrate source plugins. 1 2

Other projects


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