function RecipeExtensionConfigStorage::exists

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Recipe/RecipeExtensionConfigStorage.php \Drupal\Core\Recipe\RecipeExtensionConfigStorage::exists()

Overrides StorageInterface::exists

File

core/lib/Drupal/Core/Recipe/RecipeExtensionConfigStorage.php, line 41

Class

RecipeExtensionConfigStorage
Allows the recipe to select configuration from the module.

Namespace

Drupal\Core\Recipe

Code

public function exists($name) : bool {
    if (!empty($this->configNames) && !in_array($name, $this->configNames, TRUE)) {
        return FALSE;
    }
    return $this->storage
        ->exists($name);
}

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