public function TypedConfigManager::hasConfigSchema in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::hasConfigSchema()
Checks if the configuration schema with the given config name exists.
Parameters
string $name: Configuration name.
Return value
bool TRUE if configuration schema exists, FALSE otherwise.
Overrides TypedConfigManagerInterface::hasConfigSchema
File
- core/
lib/ Drupal/ Core/ Config/ TypedConfigManager.php, line 309 - Contains \Drupal\Core\Config\TypedConfigManager.
Class
- TypedConfigManager
- Manages config schema type plugins.
Namespace
Drupal\Core\ConfigCode
public function hasConfigSchema($name) {
// The schema system falls back on the Undefined class for unknown types.
$definition = $this
->getDefinition($name);
return is_array($definition) && $definition['class'] != '\\Drupal\\Core\\Config\\Schema\\Undefined';
}