TypedConfigManager::getFallbackName

protected TypedConfigManager::getFallbackName($name) Gets fallback configuration schema name. Parameters string $name: Configuration name or key. Return value null|string The resolved schema name for the given configuration name or key. Returns null if there is no schema name to fallback to. For example, breakpoint.breakpoint.module.toolbar.narrow will check for definitions in the following order: breakpoint.breakpoint.module.toolbar.* breakpoint.breakpoint.module.*.* breakpoint.breakpoint.mo

TypedConfigManager::hasConfigSchema

public TypedConfigManager::hasConfigSchema($name) 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 349 Class TypedConfigManager Manages config schema type plugins. Namespace Drupal\Core\Config Code public function hasConfigSchema($na

TypedConfigManager::replaceName

protected TypedConfigManager::replaceName($name, $data) Replaces variables in configuration name. The configuration name may contain one or more variables to be replaced, enclosed in square brackets like '[name]' and will follow the replacement rules defined by the replaceVariable() method. Parameters string $name: Configuration name with variables in square brackets. mixed $data: Configuration data for the element. Return value string Configuration name with variables replaced. File core/lib

TypedConfigManager::replaceVariable

protected TypedConfigManager::replaceVariable($value, $data) Replaces variable values in included names with configuration data. Variable values are nested configuration keys that will be replaced by their value or some of these special strings: '%key', will be replaced by the element's key. '%parent', to reference the parent element. '%type', to reference the schema definition type. Can only be used in combination with %parent. There may be nested configuration keys separated by dots or more

TypedConfigManager::__construct

public TypedConfigManager::__construct(StorageInterface $configStorage, StorageInterface $schemaStorage, CacheBackendInterface $cache, ModuleHandlerInterface $module_handler) Creates a new typed configuration manager. Parameters \Drupal\Core\Config\StorageInterface $configStorage: The storage object to use for reading schema data \Drupal\Core\Config\StorageInterface $schemaStorage: The storage object to use for reading schema data \Drupal\Core\Cache\CacheBackendInterface $cache: The cache back

TypedConfigManagerInterface

Defines an interface for managing config schema type plugins. Hierarchy interface \Drupal\Component\Plugin\PluginManagerInterface; interface \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterfaceinterface \Drupal\Core\TypedData\TypedDataManagerInterfaceinterface \Drupal\Core\Config\TypedConfigManagerInterface See also \Drupal\Core\Config\TypedConfigManager \Drupal\Core\Config\Schema\ConfigSchemaDiscovery hook_config_schema_info_alter() https://www.drupal.org/node/1905070 File core/li

TypedConfigManagerInterface::buildDataDefinition

public TypedConfigManagerInterface::buildDataDefinition(array $definition, $value, $name = NULL, $parent = NULL) Creates a new data definition object from a type definition array and actual configuration data. Since type definitions may contain variables to be replaced, we need the configuration value to create it. Parameters array $definition: The base type definition array, for which a data definition should be created. $value: Optional value of the configuration element. string $name: Optio

TypedConfigManagerInterface::get

public TypedConfigManagerInterface::get($name) Gets typed configuration data. Parameters string $name: Configuration object name. Return value \Drupal\Core\TypedData\TraversableTypedDataInterface Typed configuration element. File core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php, line 26 Class TypedConfigManagerInterface Defines an interface for managing config schema type plugins. Namespace Drupal\Core\Config Code public function get($name);

TypedConfigManagerInterface::getDefinition

public TypedConfigManagerInterface::getDefinition($plugin_id, $exception_on_invalid = TRUE) Gets a specific plugin definition. Parameters string $plugin_id: A plugin id. bool $exception_on_invalid: Ignored with TypedConfigManagerInterface. Kept for compatibility with DiscoveryInterface. Return value array A plugin definition array. If the given plugin id does not have typed configuration definition assigned, the definition of an undefined element type is returned. Overrides DiscoveryInterface

TypedConfigManagerInterface::hasConfigSchema

public TypedConfigManagerInterface::hasConfigSchema($name) 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. File core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php, line 57 Class TypedConfigManagerInterface Defines an interface for managing config schema type plugins. Namespace Drupal\Core\Config Code public function hasConfigSchema($name)