You are here

interface MultiversionMigrationInterface in Multiversion 8

Hierarchy

Expanded class hierarchy of MultiversionMigrationInterface

All classes that implement MultiversionMigrationInterface

File

src/MultiversionMigrationInterface.php, line 10

Namespace

Drupal\multiversion
View 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

Namesort descending Modifiers Type Description Overrides
MultiversionMigrationInterface::applyNewStorage public function Converts the entity storage to revisionable for the given entity type IDs. 1
MultiversionMigrationInterface::cleanupMigration public function Removes the map and message tables for a migration. 1
MultiversionMigrationInterface::create public static function Factory method. 1
MultiversionMigrationInterface::emptyOldStorage public function 1
MultiversionMigrationInterface::getFieldMap public function Helper method to fetch the field map for an entity type. 1
MultiversionMigrationInterface::installDependencies public function 1
MultiversionMigrationInterface::migrateContentFromTemp public function 1
MultiversionMigrationInterface::migrateContentToTemp public function 1
MultiversionMigrationInterface::uninstallDependencies public function 1