You are here

public static function MultiversionManager::enableMigrationIsActive in Multiversion 8

Static method maintaining the enable migration status.

This method needs to be static because in some strange situations Drupal might create multiple instances of this manager. Is this only an issue during tests perhaps?

Parameters

boolean|array $status:

Return value

boolean|array

2 calls to MultiversionManager::enableMigrationIsActive()
MultiversionManager::allowToAlter in src/MultiversionManager.php
MultiversionManager::enableEntityTypes in src/MultiversionManager.php
@todo Ensure nothing breaks if the migration is run twice.

File

src/MultiversionManager.php, line 121

Class

MultiversionManager

Namespace

Drupal\multiversion

Code

public static function enableMigrationIsActive($status = NULL) {
  static $cache = FALSE;
  if ($status !== NULL) {
    $cache = $status;
  }
  return $cache;
}