function StageBase::isApplying

Checks if staged changes are being applied to the active directory.

Return value

bool TRUE if the staged changes are being applied to the active directory, and it has been less than an hour since that operation began. If more than an hour has elapsed since the changes started to be applied, FALSE is returned even if the stage internally thinks that changes are still being applied.

See also

::apply()

1 call to StageBase::isApplying()
StageBase::destroy in core/modules/package_manager/src/StageBase.php
Deletes the stage directory.

File

core/modules/package_manager/src/StageBase.php, line 778

Class

StageBase
Creates and manages a stage directory in which to install or update code.

Namespace

Drupal\package_manager

Code

public final function isApplying() : bool {
    $apply_time = $this->tempStore
        ->get(self::TEMPSTORE_APPLY_TIME_KEY);
    return isset($apply_time) && $this->time
        ->getRequestTime() - $apply_time < 3600;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.