You are here

public function ConfigImporter::alreadyImporting in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::alreadyImporting()
  2. 9 core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::alreadyImporting()

Determines if an import is already running.

Return value

bool TRUE if an import is already running, FALSE if not.

File

core/lib/Drupal/Core/Config/ConfigImporter.php, line 1055

Class

ConfigImporter
Defines a configuration importer.

Namespace

Drupal\Core\Config

Code

public function alreadyImporting() {
  return !$this->lock
    ->lockMayBeAvailable(static::LOCK_NAME);
}