Classes, traits, and interfaces - Drupal 11.1.x - Drupal Core
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 1518
Name | Deprecated | Object type | Namespace | File name | Summary | Direct uses | Use statements | Strings |
---|---|---|---|---|---|---|---|---|
MigratePreRowSaveEvent | class | Drupal\migrate\Event | core/ |
Wraps a pre-save event for event listeners. | 1 | 1 | ||
MigrateProcess | class | Drupal\migrate\Attribute | core/ |
Defines a MigrateProcess attribute. | 77 | 1 | ||
MigrateProcessInterface | interface | Drupal\migrate\Plugin | core/ |
An interface for migrate process plugins. | 1 | 2 | ||
MigrateProcessPlugin | class | Drupal\migrate\Annotation | core/ |
Defines a migration process plugin annotation object. | 1 | |||
MigrateRollbackEvent | class | Drupal\migrate\Event | core/ |
Wraps a pre- or post-rollback event for event listeners. | 3 | |||
MigrateRowDeleteEvent | class | Drupal\migrate\Event | core/ |
Wraps a row deletion event for event listeners. | 2 | |||
MigrateSkipProcessException | in drupal:10.3.0 and is removed from drupal:12.0.0. Return FALSE from a process plugin's isPipelineStopped() method to stop further processing on a pipeline. |
class | Drupal\migrate | core/ |
This exception is thrown when the rest of the process should be skipped. | |||
MigrateSkipRowException | class | Drupal\migrate | core/ |
This exception is thrown when a row should be skipped. | 10 | |||
MigrateSource | class | Drupal\migrate\Annotation | core/ |
Defines a migration source plugin annotation object. | ||||
MigrateSourceInterface | interface | Drupal\migrate\Plugin | core/ |
Defines an interface for migrate sources. | 1 | 3 | ||
MigrateSourcePluginManager | class | Drupal\migrate\Plugin | core/ |
Plugin manager for migrate source plugins. | 1 | 2 | ||
MigrateStub | class | Drupal\migrate | core/ |
Provides the migrate stubbing service. | 2 | |||
MigrateStubInterface | interface | Drupal\migrate | core/ |
Provides an interface for the migrate stub service. | 1 | 1 | ||
MigrateUpgradeFormBase | abstract class | Drupal\migrate_drupal_ui\Form | core/ |
Form base for the Migrate Upgrade UI. | 5 | |||
MigrateUpgradeImportBatch | class | Drupal\migrate_drupal_ui\Batch | core/ |
Runs a single migration batch. | 1 | |||
MigrateValidatableEntityInterface | interface | Drupal\migrate\Plugin | core/ |
To implement by a destination plugin that should provide entity validation. | 1 | 1 | ||
MigratingSessionHandler | class | Symfony\Component\HttpFoundation\Session\Storage\Handler | vendor/ |
Migrating session handler for migrating from one handler to another. It reads from the current handler and writes both the current and new ones. | ||||
Migration | interface | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 29 | |||
Migration | class | Drupal\migrate\Plugin | core/ |
Defines the Migration plugin. | 4 | 4 | ||
MigrationBuilder | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MigrationConfigurationTrait | trait | Drupal\migrate_drupal | core/ |
Configures the appropriate migrations for a given source Drupal database. | 1 | |||
MigrationDeriverTrait | trait | Drupal\migrate\Plugin | core/ |
Provides functionality for migration derivers. | 4 | |||
MigrationException | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | ||||
MigrationInterface | interface | Drupal\migrate\Plugin | core/ |
Interface for migrations. | 1 | 80 | ||
MigrationLookup | class | Drupal\migrate\Plugin\migrate\process | core/ |
Looks up the value of a property based on a previous migration. | ||||
MigrationPluginManager | class | Drupal\migrate_drupal | core/ |
Manages migration plugins. | ||||
MigrationPluginManager | class | Drupal\migrate\Plugin | core/ |
Plugin manager for migration plugins. | 1 | 1 | 2 | |
MigrationPluginManagerInterface | interface | Drupal\migrate\Plugin | core/ |
Migration plugin manager interface. | 1 | 10 | ||
MigrationState | class | Drupal\migrate_drupal | core/ |
Determines the migrate state for all modules enabled on the source. | 1 | 2 | ||
MigrationWithFollowUpInterface | interface | Drupal\migrate_drupal\Plugin | core/ |
Interface for migrations with follow-up migrations. | 2 | 3 | ||
Migrator | final class | PHPUnit\TextUI\XmlConfiguration | vendor/ |
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit | 1 | |||
MimeHeaderEncoderInterface | interface | Symfony\Component\Mime\Encoder | vendor/ |
@author Chris Corbyn | 2 | |||
MimeMessageNormalizer | final class | Symfony\Component\Serializer\Normalizer | vendor/ |
Normalize Mime message classes. | ||||
MimeType | final class | GuzzleHttp\Psr7 | vendor/ |
|||||
MimeTypeGuesser | class | Drupal\Core\ProxyClass\File\MimeType | core/ |
Provides a proxy class for \Drupal\Core\File\MimeType\MimeTypeGuesser. | ||||
MimeTypeGuesser | class | Drupal\Core\File\MimeType | core/ |
Defines a MIME type guesser that also supports stream wrapper paths. | 1 | |||
MimeTypeGuesserInterface | interface | Symfony\Component\Mime | vendor/ |
Guesses the MIME type of a file. | 7 | 4 | ||
MimeTypes | final class | Symfony\Component\Mime | vendor/ |
Manages MIME types and file extensions. | 8 | |||
MimeTypesInterface | interface | Symfony\Component\Mime | vendor/ |
@author Fabien Potencier <fabien@symfony.com> | 1 | |||
Mini | class | Drupal\views\Plugin\views\pager | core/ |
The plugin to handle mini pager. | ||||
Mink | class | Behat\Mink | vendor/ |
Mink session manager. | ||||
Minus | class | PhpParser\Node\Expr\BinaryOp | vendor/ |
|||||
Minus | class | PhpParser\Node\Expr\AssignOp | vendor/ |
|||||
MissingBundleClassException | class | Drupal\Core\Entity\Exception | core/ |
Exception thrown if a bundle class does not exist. | 1 | |||
MissingClassGroupsException | class | SlevomatCodingStandard\Sniffs\Classes | vendor/ |
|||||
MissingColonSniff | class | PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS | vendor/ |
|||||
MissingConstructorArgumentsException | class | Symfony\Component\Serializer\Exception | vendor/ |
@author Maxime VEBER <maxime.veber@nekland.fr> | 2 | |||
MissingContentEvent | class | Drupal\Core\Config\Importer | core/ |
Wraps a configuration event for event listeners. | 1 | |||
MissingDataException | class | Drupal\Core\TypedData\Exception | core/ |
Exception thrown when an operation misses a data value; i.e., it is unset. | 2 | |||
MissingDependencyException | class | Drupal\Core\Extension | core/ |
Exception class to throw when modules are missing on install. | 2 |