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
MethodFilterTest class Drupal\Tests\Core\Routing core/tests/Drupal/Tests/Core/Routing/MethodFilterTest.php Tests Drupal\Core\Routing\MethodFilter.
MethodRouteCondition class Drupal\Tests\Core\Routing core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php Test class.
MethodRouteLocale class Drupal\Tests\Core\Routing core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php Test class.
MethodRouteLocalizedPaths class Drupal\Tests\Core\Routing core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php Test class.
MethodRouteMissingName class Drupal\Tests\Core\Routing core/tests/Drupal/Tests/Core/Routing/UnsupportedRouteAttributePropertiesTest.php Test class.
MigrateAccessCheck class Drupal\migrate_drupal_ui core/modules/migrate_drupal_ui/src/MigrateAccessCheck.php Checks access for migrate_drupal_ui routes.
MigrateAccessTest class Drupal\Tests\migrate_drupal_ui\Functional core/modules/migrate_drupal_ui/tests/src/Functional/MigrateAccessTest.php Tests that only user 1 can access the migrate UI.
MigrateActionConfigsTest class Drupal\Tests\system\Kernel\Migrate\d7 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateActionConfigsTest.php Upgrade variables to null.
MigrateActionConfigsTest class Drupal\Tests\system\Kernel\Migrate\d6 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateActionConfigsTest.php Upgrade variables to null.
MigrateActionsTest class Drupal\Tests\system\Kernel\Migrate\d6 core/modules/system/tests/src/Kernel/Migrate/d6/MigrateActionsTest.php Tests migration of action items.
MigrateActionsTest class Drupal\Tests\system\Kernel\Migrate\d7 core/modules/system/tests/src/Kernel/Migrate/d7/MigrateActionsTest.php Tests migration of action items.
MigrateBlockContentBodyFieldTest class Drupal\Tests\block_content\Kernel\Migrate core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentBodyFieldTest.php Attaches a body field to the block type.
MigrateBlockContentEntityDisplayTest class Drupal\Tests\block_content\Kernel\Migrate core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityDisplayTest.php Tests migration of block content body field display configuration.
MigrateBlockContentEntityFormDisplayTest class Drupal\Tests\block_content\Kernel\Migrate core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityFormDisplayTest.php Tests migration of block content body field form display configuration.
MigrateBlockContentStubTest class Drupal\Tests\block_content\Kernel\Migrate core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php Test stub creation for block_content entities.
MigrateBlockContentTest class Drupal\Tests\block_content\Kernel\Migrate\d6 core/modules/block_content/tests/src/Kernel/Migrate/d6/MigrateBlockContentTest.php Upgrade content blocks.
MigrateBlockContentTranslationTest class Drupal\Tests\block\Kernel\Migrate\d6 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockContentTranslationTest.php Tests migration of i18n block translations.
MigrateBlockContentTranslationTest class Drupal\Tests\block\Kernel\Migrate\d7 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockContentTranslationTest.php Tests migration of i18n block translations.
MigrateBlockContentTypeTest class Drupal\Tests\block_content\Kernel\Migrate core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentTypeTest.php Tests migration of the basic block content type.
MigrateBlockedIpsTest class Drupal\Tests\ban\Kernel\Migrate\d7 core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php Migrate blocked IPs.
MigrateBlockNoBlockContentTest class Drupal\Tests\block\Kernel\Migrate\d7 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockNoBlockContentTest.php Tests the migration of blocks without Block Content installed.
MigrateBlockTest class Drupal\Tests\block\Kernel\Migrate\d6 core/modules/block/tests/src/Kernel/Migrate/d6/MigrateBlockTest.php Tests migration of blocks to configuration entities.
MigrateBlockTest class Drupal\Tests\block\Kernel\Migrate\d7 core/modules/block/tests/src/Kernel/Migrate/d7/MigrateBlockTest.php Tests migration of blocks to configuration entities.
MigrateBuildDependencyInterface interface Drupal\migrate core/modules/migrate/src/MigrateBuildDependencyInterface.php Interface for migration plugin manager for building dependencies. 1 1
MigrateBundleTest class Drupal\Tests\migrate\Kernel core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php Tests setting of bundles on content entity migrations.
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 content 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 content 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 content 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.

Other projects


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