public TypedConfigManager::hasConfigSchema($name)
Checks if the configuration schema with the given config name exists.
string $name: Configuration name.
bool TRUE if configuration schema exists, FALSE otherwise.
Overrides TypedConfigManagerInterface::hasConfigSchema
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'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!TypedConfigManager.php/function/TypedConfigManager::hasConfigSchema/8.1.x