function RecipeRunner::tryToSetIsApplying

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Recipe/RecipeRunner.php \Drupal\Core\Recipe\RecipeRunner::tryToSetIsApplying()

Tries to set the isApplying flag to TRUE.

Return value

bool TRUE if this call set the flag, FALSE if it was already set.

File

core/lib/Drupal/Core/Recipe/RecipeRunner.php, line 437

Class

RecipeRunner
Applies a recipe.

Namespace

Drupal\Core\Recipe

Code

private static function tryToSetIsApplying() : bool {
  if (!static::$isApplying) {
    static::$isApplying = TRUE;
    return TRUE;
  }
  return FALSE;
}

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