Classes, traits, and interfaces - 9.5.x - drupal
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 |
---|---|---|---|---|---|---|---|---|
MigrateVocabularyEntityDisplayTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary entity display migration. | ||||
MigrateVocabularyEntityFormDisplayTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary entity form display migration. | ||||
MigrateVocabularyFieldInstanceTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary field instance migration. | ||||
MigrateVocabularyFieldTest | class | Drupal\Tests\taxonomy\Kernel\Migrate\d6 | core/ |
Vocabulary field migration. | ||||
Migration | class | Drupal\migrate\Plugin | core/ |
Defines the Migration plugin. | 6 | 7 | ||
MigrationConfigurationTrait | trait | Drupal\migrate_drupal | core/ |
Configures the appropriate migrations for a given source Drupal database. | 6 | |||
MigrationConfigurationTraitTest | class | Drupal\Tests\migrate_drupal\Unit | core/ |
@coversDefaultClass \Drupal\migrate_drupal\MigrationConfigurationTrait[[api-linebreak]] @group migrate_drupal | ||||
MigrationDeriverTrait | trait | Drupal\migrate\Plugin | core/ |
Provides functionality for migration derivers. | 4 | |||
MigrationInterface | interface | Drupal\migrate\Plugin | core/ |
Interface for migrations. | 1 | 138 | ||
MigrationLabelExistTest | class | Drupal\Tests\migrate_drupal_ui\Kernel | core/ |
Tests that labels exist for all migrations. | ||||
MigrationLookup | class | Drupal\migrate\Plugin\migrate\process | core/ |
Looks up the value of a property based on a previous migration. | 1 | |||
MigrationLookupTest | class | Drupal\Tests\migrate\Unit\process | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\migrate\process\MigrationLookup[[api-linebreak]] @group migrate | ||||
MigrationLookupTestCase | abstract class | Drupal\Tests\migrate\Unit\process | core/ |
Provides container handling for migration lookup unit tests. | 1 | |||
MigrationPluginConfigurationTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the migration plugin manager. | ||||
MigrationPluginListTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the migration plugin manager. | ||||
MigrationPluginManager | class | Drupal\migrate\Plugin | core/ |
Plugin manager for migration plugins. | 1 | 3 | 2 | |
MigrationPluginManager | class | Drupal\migrate_drupal | core/ |
Manages migration plugins. | ||||
MigrationPluginManagerInterface | interface | Drupal\migrate\Plugin | core/ |
Migration plugin manager interface. | 1 | 17 | ||
MigrationPluginManagerTest | class | Drupal\Tests\migrate\Unit | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\MigrationPluginManager[[api-linebreak]] @group migrate | ||||
MigrationPluginManagerTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the migration plugin manager. | ||||
MigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d6 | core/ |
Tests the getProcess() method of all Drupal 6 migrations. | ||||
MigrationProcessTest | class | Drupal\Tests\migrate_drupal\Kernel\d7 | core/ |
Tests the getProcess() method of all Drupal 7 migrations. | ||||
MigrationSourceCacheTest | class | Drupal\Tests\migrate\Kernel\Plugin\source | core/ |
Test source counts are correctly cached. | ||||
MigrationState | class | Drupal\migrate_drupal | core/ |
Determines the migrate state for all modules enabled on the source. | 3 | 2 | ||
MigrationStateUnitTest | class | Drupal\Tests\migrate_drupal\Unit | core/ |
Defines a class for testing \Drupal\migrate_drupal\MigrationState. | ||||
MigrationTest | class | Drupal\Tests\migrate\Unit | core/ |
@coversDefaultClass \Drupal\migrate\Plugin\Migration[[api-linebreak]] | ||||
MigrationTest | class | Drupal\Tests\migrate\Kernel | core/ |
Tests the migration plugin. | ||||
MigrationTest | class | Drupal\Tests\migrate\Kernel\Plugin | core/ |
Tests the migration plugin. | ||||
MigrationWithFollowUpInterface | interface | Drupal\migrate_drupal\Plugin | core/ |
Interface for migrations with follow-up migrations. | 2 | 3 | ||
MimeTypeGuesser | class | Drupal\Core\File\MimeType | core/ |
Defines a MIME type guesser that also supports stream wrapper paths. | 3 | 2 | ||
MimeTypeGuesser | class | Drupal\Core\ProxyClass\File\MimeType | core/ |
Provides a proxy class for \Drupal\Core\File\MimeType\MimeTypeGuesser. | ||||
MimeTypeGuesserTest | class | Drupal\Tests\Core\File | core/ |
@coversDefaultClass \Drupal\Core\File\MimeType\MimeTypeGuesser[[api-linebreak]] @group DrupalKernel | ||||
MimeTypePass | in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. |
class | Drupal\Core\DependencyInjection\Compiler | core/ |
Adds @mime_type_guesser tagged services to handle forwards compatibility. | 2 | ||
MimeTypePassTest | class | Drupal\Tests\Core\DependencyInjection\Compiler | core/ |
@coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\MimeTypePass[[api-linebreak]] @group DependencyInjection @group legacy @runInSeparateProcess | ||||
Mini | class | Drupal\views\Plugin\views\pager | core/ |
The plugin to handle mini pager. | ||||
MinimalInstallerTest | class | Drupal\FunctionalTests\Installer | core/ |
Tests the interactive installer installing the minimal profile. | ||||
MinimalTest | class | Drupal\Tests\minimal\Functional | core/ |
Tests Minimal installation profile expectations. | ||||
MiniPagerTest | class | Drupal\Tests\views\Functional\Plugin | core/ |
Tests the mini pager plugin. | ||||
MissingBundleClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if a bundle class does not exist. | 2 | |||
MissingContentEvent | class | Drupal\Core\Config\Importer | core/ |
Wraps a configuration event for event listeners. | 2 | |||
MissingDataException | class | Drupal\Core\TypedData\Exception | core/ |
Exception thrown when an operation misses a data value; i.e., it is unset. | 3 | |||
MissingDependencyException | class | Drupal\Core\Extension | core/ |
Exception class to throw when modules are missing on install. | 5 | |||
MissingGroupException | class | Drupal\Core\Test\Exception | core/ |
Exception thrown when a test class is missing an @group annotation. | 2 | |||
MissingSchema | class | Drupal\block_test\Plugin\Condition | core/ |
Provides a 'missing_schema' condition. | ||||
MissingThemeDependencyException | class | Drupal\Core\Theme | core/ |
Exception to be thrown when base theme for installed theme is not installed. | ||||
MissingValueContextException | class | Drupal\Component\Plugin\Exception | core/ |
An exception class thrown when contexts exist but are missing a value. | 3 | |||
MockAliasManager | class | Drupal\system\Tests\Routing | core/ |
An easily configurable mock alias manager. | 1 | |||
MockBlockManager | class | Drupal\plugin_test\Plugin | core/ |
Defines a plugin manager used by Plugin API derivative unit tests. | 2 | |||
MockComplexContextBlock | class | Drupal\plugin_test\Plugin\plugin_test\mock_block | core/ |
Implementation of a complex context plugin used by Plugin API context tests. | ||||
MockConfiguratorInterface | interface | Drupal\Tests\Component\DependencyInjection | core/ |
Helper interface to test Container::get() with configurator. |
Pagination
- Previous page
- Page 111
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.