TypedConfigManager::getDiscovery

protected TypedConfigManager::getDiscovery() Gets the plugin discovery. Return value \Drupal\Component\Plugin\Discovery\DiscoveryInterface Overrides DefaultPluginManager::getDiscovery File core/lib/Drupal/Core/Config/TypedConfigManager.php, line 59 Class TypedConfigManager Manages config schema type plugins. Namespace Drupal\Core\Config Code protected function getDiscovery() { if (!isset($this->discovery)) { $this->discovery = new ConfigSchemaDiscovery($this->schemaStor

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::get

public TypedConfigManager::get($name) Gets typed configuration data. Parameters string $name: Configuration object name. Return value \Drupal\Core\TypedData\TraversableTypedDataInterface Typed configuration element. Overrides TypedConfigManagerInterface::get File core/lib/Drupal/Core/Config/TypedConfigManager.php, line 70 Class TypedConfigManager Manages config schema type plugins. Namespace Drupal\Core\Config Code public function get($name) { $data = $this->configStorage->re

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::getDefinitionWithReplacements

protected TypedConfigManager::getDefinitionWithReplacements($base_plugin_id, array $replacements, $exception_on_invalid = TRUE) Gets a schema definition with replacements for dynamic names. Parameters string $base_plugin_id: A plugin ID. array $replacements: An array of replacements for dynamic type names. bool $exception_on_invalid: (optional) This parameter is passed along to self::getDefinition(). However, self::getDefinition() does not respect this parameter, so it is effectively useless i

TypedConfigManager::getDefinition

public TypedConfigManager::getDefinition($base_plugin_id, $exception_on_invalid = TRUE) Gets a specific plugin definition. Parameters string $plugin_id: A plugin id. bool $exception_on_invalid: (optional) If TRUE, an invalid plugin ID will throw an exception. Return value mixed A plugin definition, or NULL if the plugin ID is invalid and $exception_on_invalid is FALSE. Throws \Drupal\Component\Plugin\Exception\PluginNotFoundException Thrown if $plugin_id is invalid and $exception_on_invalid

TypedConfigManager::buildDataDefinition

public TypedConfigManager::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: Optional name

TypedConfigManager::alterDefinitions

protected TypedConfigManager::alterDefinitions(&$definitions) Invokes the hook to alter the definitions if the alter hook is set. Parameters $definitions: The discovered plugin definitions. Overrides DefaultPluginManager::alterDefinitions File core/lib/Drupal/Core/Config/TypedConfigManager.php, line 358 Class TypedConfigManager Manages config schema type plugins. Namespace Drupal\Core\Config Code protected function alterDefinitions(&$definitions) { $discovered_schema = array

TypedConfigManager::determineType

protected TypedConfigManager::determineType($base_plugin_id, array $definitions) Determines the typed config type for a plugin ID. Parameters string $base_plugin_id: The plugin ID. array $definitions: An array of typed config definitions. Return value string The typed config type for the given plugin ID. File core/lib/Drupal/Core/Config/TypedConfigManager.php, line 125 Class TypedConfigManager Manages config schema type plugins. Namespace Drupal\Core\Config Code protected function de