interface MultiversionMigrationInterface in Multiversion 8
Hierarchy
- interface \Drupal\multiversion\MultiversionMigrationInterface
Expanded class hierarchy of MultiversionMigrationInterface
All classes that implement MultiversionMigrationInterface
File
- src/
MultiversionMigrationInterface.php, line 10
Namespace
Drupal\multiversionView source
interface MultiversionMigrationInterface {
/**
* Factory method.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager
* @return \Drupal\multiversion\MultiversionMigrationInterface
*/
public static function create(ContainerInterface $container, EntityTypeManagerInterface $entity_manager);
/**
* @return \Drupal\multiversion\MultiversionMigrationInterface
*/
public function installDependencies();
/**
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* @param array $field_map
*
* @return \Drupal\multiversion\MultiversionMigrationInterface
*/
public function migrateContentToTemp(EntityTypeInterface $entity_type, $field_map);
/**
* @param \Drupal\Core\Entity\EntityStorageInterface $storage
* @return \Drupal\multiversion\MultiversionMigrationInterface
*/
public function emptyOldStorage(EntityStorageInterface $storage);
/**
* Converts the entity storage to revisionable for the given entity type IDs.
*
* @param array $entity_type_ids
* An array of entity types for which to convert the storage.
*
* @return $this
*/
public function applyNewStorage(array $entity_type_ids);
/**
* @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
* @param array $field_map
*
* @return \Drupal\multiversion\MultiversionMigrationInterface
*/
public function migrateContentFromTemp(EntityTypeInterface $entity_type, $field_map);
/**
* @return \Drupal\multiversion\MultiversionMigrationInterface
*/
public function uninstallDependencies();
/**
* Removes the map and message tables for a migration.
*
* @param int $id
* The migration ID.
*/
public function cleanupMigration($id);
/**
* Helper method to fetch the field map for an entity type.
*
* @param EntityTypeInterface $entity_type
* @param string $op
* @param string $action
*
* @return array
*/
public function getFieldMap(EntityTypeInterface $entity_type, $op, $action);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MultiversionMigrationInterface:: |
public | function | Converts the entity storage to revisionable for the given entity type IDs. | 1 |
MultiversionMigrationInterface:: |
public | function | Removes the map and message tables for a migration. | 1 |
MultiversionMigrationInterface:: |
public static | function | Factory method. | 1 |
MultiversionMigrationInterface:: |
public | function | 1 | |
MultiversionMigrationInterface:: |
public | function | Helper method to fetch the field map for an entity type. | 1 |
MultiversionMigrationInterface:: |
public | function | 1 | |
MultiversionMigrationInterface:: |
public | function | 1 | |
MultiversionMigrationInterface:: |
public | function | 1 | |
MultiversionMigrationInterface:: |
public | function | 1 |