class TestMigrateExecutable
Same name in this branch
- 10 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable
- 10 core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php \Drupal\Tests\migrate\Kernel\TestMigrateExecutable
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable
- 9 core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php \Drupal\Tests\migrate\Kernel\TestMigrateExecutable
- 9 core/modules/migrate/tests/src/Kernel/Plugin/LogTest.php \Drupal\Tests\migrate\Kernel\Plugin\TestMigrateExecutable
- 8.9.x core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable
- 8.9.x core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php \Drupal\Tests\migrate\Kernel\TestMigrateExecutable
- 11.x core/modules/migrate/tests/src/Unit/TestMigrateExecutable.php \Drupal\Tests\migrate\Unit\TestMigrateExecutable
- 11.x core/modules/migrate/tests/src/Kernel/TestMigrateExecutable.php \Drupal\Tests\migrate\Kernel\TestMigrateExecutable
- 11.x core/modules/migrate/tests/src/Kernel/Plugin/LogTest.php \Drupal\Tests\migrate\Kernel\Plugin\TestMigrateExecutable
MigrateExecutable test class.
Hierarchy
- class \Drupal\migrate\MigrateExecutable implements \Drupal\migrate\MigrateExecutableInterface uses \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Tests\migrate\Kernel\Plugin\TestMigrateExecutable extends \Drupal\migrate\MigrateExecutable
Expanded class hierarchy of TestMigrateExecutable
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ LogTest.php, line 192
Namespace
Drupal\Tests\migrate\Kernel\PluginView source
class TestMigrateExecutable extends MigrateExecutable {
/**
* The configuration values of the source.
*
* @var array
*/
public $sourceIdValues;
/**
* Get the ID map from the current migration.
*
* @return \Drupal\migrate\Plugin\MigrateIdMapInterface
* The ID map.
*/
public function getIdMap() {
return parent::getIdMap();
}
}
Members
Title Sort descending | Deprecated | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|---|
MigrateExecutable::$counts | protected | property | An array of counts. Initially used for cache hit/miss tracking. | |||
MigrateExecutable::$eventDispatcher | protected | property | The event dispatcher. | |||
MigrateExecutable::$memoryLimit | protected | property | The PHP memory_limit expressed in bytes. | |||
MigrateExecutable::$memoryThreshold | protected | property | The ratio of the memory limit at which an operation will be interrupted. | |||
MigrateExecutable::$message | public | property | Migration message service. | |||
MigrateExecutable::$migration | protected | property | The configuration of the migration to do. | |||
MigrateExecutable::$source | protected | property | The source. | |||
MigrateExecutable::$sourceRowStatus | protected | property | Status of one row. | |||
MigrateExecutable::attemptMemoryReclaim | protected | function | Tries to reclaim memory. | 1 | ||
MigrateExecutable::checkStatus | protected | function | Checks for exceptional conditions, and display feedback. | |||
MigrateExecutable::currentSourceIds | protected | function | Fetches the key array for the current source record. | |||
MigrateExecutable::formatSize | Deprecated | protected | function | Generates a string representation for the given byte count. | ||
MigrateExecutable::getEventDispatcher | protected | function | Gets the event dispatcher. | |||
MigrateExecutable::getMemoryUsage | protected | function | Returns the memory usage so far. | 1 | ||
MigrateExecutable::getSource | protected | function | Returns the source. | 1 | ||
MigrateExecutable::handleException | protected | function | Takes an Exception object and both saves and displays it. | 1 | ||
MigrateExecutable::import | public | function | Performs an import operation - migrate items from source to destination. | Overrides MigrateExecutableInterface::import | ||
MigrateExecutable::memoryExceeded | protected | function | Tests whether we've exceeded the desired memory threshold. | 1 | ||
MigrateExecutable::processPipeline | protected | function | Runs a process pipeline. | |||
MigrateExecutable::processRow | public | function | Processes a row. | Overrides MigrateExecutableInterface::processRow | ||
MigrateExecutable::rollback | public | function | Performs a rollback operation - remove previously-imported items. | Overrides MigrateExecutableInterface::rollback | ||
MigrateExecutable::saveMessage | public | function | Passes messages through to the map class. | Overrides MigrateExecutableInterface::saveMessage | ||
MigrateExecutable::__construct | public | function | Constructs a MigrateExecutable and verifies and sets the memory limit. | |||
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 | ||
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | |||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | |||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | |||
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | 2 | ||
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. | |||
TestMigrateExecutable::$sourceIdValues | public | property | The configuration values of the source. | Overrides MigrateExecutable::$sourceIdValues | ||
TestMigrateExecutable::getIdMap | public | function | Get the ID map from the current migration. | Overrides MigrateExecutable::getIdMap |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.