diff --git a/core/includes/config.inc b/core/includes/config.inc
index 39094f8..8b43120 100644
--- a/core/includes/config.inc
+++ b/core/includes/config.inc
@@ -3,6 +3,8 @@
 use Drupal\Core\Config\Config;
 use Drupal\Core\Config\FileStorage;
 use Drupal\Core\Config\NullStorage;
+use Drupal\Core\Config\Metadata\ConfigWrapper;
+use Drupal\Core\Config\Metadata\MetadataLookup;
 use Drupal\Core\Config\StorageInterface;
 
 /**
@@ -104,6 +106,36 @@ function config_sync_get_changes(StorageInterface $source_storage, StorageInterf
 }
 
 /**
+ * Retrieves a metadata object for a configuration object or key.
+ *
+ * @param $name
+ *   The name of the configuration object for which we want to build a metadata object.
+ *
+ * @return Drupal\Core\Config\ConfigMetadata
+ *   An metadata object that contains the full metadata for the reguested name.
+ */
+function config_metadata($name) {
+  $metadata = &drupal_static(__FUNCTION__);
+  if (!$metadata) {
+    $metadata = new MetadataLookup();
+  }
+  return $metadata[$name];
+}
+
+/**
+ * Retrieves a configuration wrapper object to access data as typed properties.
+ *
+ * @param $name
+ *   The name of the configuration object to retrieve.
+ *
+ * @return Drupal\Core\Config\Metadata\Wrapper
+ *   A configuration wrapper object.
+ */
+function config_wrapper($name) {
+  return new ConfigWrapper(config($name));
+}
+
+/**
  * Writes an array of config file changes from a source storage to a target storage.
  *
  * @param array $config_changes
diff --git a/core/lib/Drupal/Core/Config/Metadata/ConfigWrapper.php b/core/lib/Drupal/Core/Config/Metadata/ConfigWrapper.php
new file mode 100644
index 0000000..7212ef5
--- /dev/null
+++ b/core/lib/Drupal/Core/Config/Metadata/ConfigWrapper.php
@@ -0,0 +1,166 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Core\Config\Metadata\ConfigWrapper.
+ */
+
+namespace Drupal\Core\Config\Metadata;
+
+use Drupal\Core\Config\Config;
+use Drupal\Core\Language\Language;
+use Drupal\Core\TypedData\ComplexDataInterface;
+
+/**
+ * Defines the configuration wrapper object.
+ */
+class ConfigWrapper extends WrapperBase implements ComplexDataInterface {
+  /**
+   * The configuration object itself.
+   *
+   * @var Drupal\Core\Config\Config
+   */
+  protected $config;
+
+  /**
+   * Constructs a configuration wrapper object.
+   *
+   * @param Drupal\Core\Config $config
+   *   Configuration object.
+   */
+  public function __construct($config) {
+    $this->config = $config;
+  }
+
+  /**
+   * Gets the configuration object for this data.
+   *
+   * @return Drupal\Core\Config\Config
+   */
+  public function getConfig() {
+    return $this->config;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getKey().
+   */
+  public function getKey($key = '') {
+    // As this is the parent structure, there is no base key.
+    return $key;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getBaseMetadata().
+   */
+  public function getBaseMetadata() {
+    return config_metadata($this->getConfig()->getName());
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getConfigData().
+   */
+  public function getConfigData($key = '') {
+    // As this is the parent structure, we get it right from the config object.
+    return $this->config->get($key);
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::setConfigData()
+   */
+  public function setConfigData($key, $value) {
+    $this->config->set($key, $value);
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::clearConfigData()
+   */
+  public function clearConfigData($key) {
+    $this->config->clear($key);
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getConfigKey().
+   */
+  public function getConfigKey() {
+    // This is the parent WrapperInterface so the key is empty.
+    return '';
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::get().
+   */
+  public function get($property_name) {
+    return $this->getElement($property_name);
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::set().
+   */
+  public function set($property_name, $value) {
+    // Set the data into the configuration object but behave according
+    // to the interface specification when we've got a null value.
+    if (isset($value)) {
+      $this->config->set($property_name, $value);
+    }
+    else {
+      $this->config->clear($property_name);
+    }
+    return $this;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::getProperties().
+   */
+  public function getProperties($include_computed = FALSE) {
+    return $this->toArray();
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::getPropertyValues().
+   */
+  public function getPropertyValues() {
+    return $this->toValue();
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::setPropertyValues().
+   */
+  public function setPropertyValues($values) {
+    foreach ($values as $name => $value) {
+      $this->set($name, $value);
+    }
+    return $this;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinition().
+   */
+  public function getPropertyDefinition($name) {
+    $definition = $this->getElementDefinition($name);
+    return $definition ? $definition : FALSE;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinitions().
+   */
+  public function getPropertyDefinitions() {
+    return $this->getChildrenMetadata($this->getMetadata());
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::isEmpty().
+   */
+  public function isEmpty() {
+    return !(bool)$this->toValue();
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\TranslatableInterface::language()
+   */
+  public function language() {
+    $meta = $this->getElementDefinition();
+    // The default language will be English as this is hardcoded information.
+    $langcode = isset($meta['language']) ? $meta['language'] : 'en';
+    return new Language(array('langcode' => $langcode));
+  }
+}
diff --git a/core/lib/Drupal/Core/Config/Metadata/ListElement.php b/core/lib/Drupal/Core/Config/Metadata/ListElement.php
new file mode 100644
index 0000000..0036101
--- /dev/null
+++ b/core/lib/Drupal/Core/Config/Metadata/ListElement.php
@@ -0,0 +1,63 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Core\Config\Metadata\ListElement.
+ */
+
+namespace Drupal\Core\Config\Metadata;
+
+use Drupal\Core\TypedData\ListInterface;
+use ArrayAccess;
+use Countable;
+
+/**
+ * Defines configuration element wrapper that is a list of properties.
+ */
+class ListElement extends NestedElement implements ListInterface {
+  /**
+   * Implements ArrayAccess::offsetExists().
+   */
+  public function offsetExists($offset) {
+    $data = $this->getConfigData($offset);
+    return isset($data);
+  }
+
+  /**
+   * Implements ArrayAccess::offsetGet().
+   */
+  public function offsetGet($offset) {
+    return $this->buildElement($offset);
+  }
+
+  /**
+   * Implements ArrayAccess::offsetSet().
+   */
+  public function offsetSet($offset, $value) {
+    if ($value instanceof TypedDataInterface) {
+      $value = $value->getValue();
+    }
+    $this->setConfigData($offset, $value);
+  }
+
+  /**
+   * Implements ArrayAccess::offsetUnset().
+   */
+  public function offsetUnset($offset) {
+    $this->clearConfigData($offset);
+  }
+
+  /**
+   * Implements Countable::count().
+   */
+  public function count() {
+    return count($this->getConfigData());
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ListInterface::isEmpty().
+   */
+  public function isEmpty() {
+    return !(bool)$this->toValue();
+  }
+}
diff --git a/core/lib/Drupal/Core/Config/Metadata/MetadataLookup.php b/core/lib/Drupal/Core/Config/Metadata/MetadataLookup.php
new file mode 100644
index 0000000..2eba15f
--- /dev/null
+++ b/core/lib/Drupal/Core/Config/Metadata/MetadataLookup.php
@@ -0,0 +1,102 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Core\Config\Metadata\MetadataLookup.
+ *
+ * Metadata lives in a modules 'meta' directory, next to the 'config' directory,
+ * which contains the actual configuration. For each entry in an actual
+ * configuration file, the corresponding metadata file contains an entry with
+ * the following sub-keys:
+ * - label: The human-readable name for this configuration item.
+ * - type: The data type of this configuration item. Valid types include string,
+ *   boolean, integer, and other types defined by hook_data_type_info().
+ *
+ * The name of the configuration object may contain the placeholder '%' as the
+ * last component, which denotes generic metadata for all objects of this
+ * type. For the 'large' image style, for example, both "image.style.%" and
+ * "image.style.large" would be valid metadata files. In case both of these
+ * files exist, we load the generic metadata (in this example from
+ * "image.style.%") first and add the specific metadata (in this example from
+ * "image.style.large") on top of it.
+ */
+
+namespace Drupal\Core\Config\Metadata;
+
+use Drupal\Core\Utility\CacheArray;
+use Drupal\Component\Utility\NestedArray;
+use Symfony\Component\Yaml\Parser;
+
+/**
+ * Extends CacheArray to allow searching and caching metadata.
+ */
+class MetadataLookup extends CacheArray {
+
+  /**
+   * Filesystem marker for base metadata name.
+   */
+  const BASE_MARK = '%';
+
+  /**
+   * Storage to retrieve the metadata.
+   *
+   * @var Drupal\Core\Config\Metadata\MetadataStorage
+   */
+  protected $metadataStorage;
+
+  /**
+   * Constructs a ConfigMetadata cache object.
+   */
+  public function __construct() {
+    parent::__construct('config:metadata', 'cache');
+  }
+
+  /**
+   * Overrides DrupalCacheArray::resolveCacheMiss().
+   */
+  protected function resolveCacheMiss($offset) {
+    $metadata = array();
+    // Get base metadata if available.
+    if ($basename = $this->getBaseName($offset)) {
+      $metadata = $this->offsetGet($basename);
+    }
+    // Merge current metadata on top of it.
+    if ($meta = $this->readMetadata($offset)) {
+      $metadata = NestedArray::mergeDeep($metadata, $meta);
+    }
+    $this->storage[$offset] = $metadata;
+    return $metadata;
+  }
+
+  /**
+   * Get parent metadata name.
+   */
+  protected static function getBaseName($name) {
+    $parts = explode('.', $name);
+    $last = array_pop($parts);
+    // If this is not the generic metadata (where the last component of the
+    // name is a '%'), try to load that first.
+    if ($last != self::BASE_MARK) {
+      return implode('.', array_merge($parts, array(self::BASE_MARK)));
+    }
+  }
+
+  /**
+   * Read metadata from file system.
+   *
+   * @return array
+   *   Metadata array if found or empty array if not.
+   */
+  protected function readMetadata($name) {
+    if (!isset($this->metadataStorage)) {
+      $this->metadataStorage = new MetadataStorage();
+    }
+    try {
+      return $this->metadataStorage->read($name);
+    }
+    catch (Symfony\Component\Yaml\Exception\ParseException $e) {
+      // @todo Just log an error, but return empty array.
+    }
+    return array();
+  }
+}
diff --git a/core/lib/Drupal/Core/Config/Metadata/MetadataStorage.php b/core/lib/Drupal/Core/Config/Metadata/MetadataStorage.php
new file mode 100644
index 0000000..aacd03a
--- /dev/null
+++ b/core/lib/Drupal/Core/Config/Metadata/MetadataStorage.php
@@ -0,0 +1,89 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Core\Config\Metadata\MetadataStorage.
+ */
+
+namespace Drupal\Core\Config\Metadata;
+
+use Drupal\Core\Config\FileStorage;
+
+/**
+ * Defines the file storage controller for metadata files.
+ */
+class MetadataStorage extends FileStorage {
+  /**
+   * Metadata map indexing configuration names and modules.
+   *
+   * @var array
+   */
+  protected $metaMap;
+
+  /**
+   * Overrides Drupal\Core\Config\FileStorage::__construct().
+   */
+  public function __construct() {
+    // Do nothing.
+  }
+
+  /**
+   * Implements Drupal\Core\Config\StorageInterface::exists().
+   */
+  public function exists($name) {
+    return array_key_exists($name, $this->getMetadataMap());
+  }
+
+  /**
+   * Overrides Drupal\Core\Config\FileStorage::getFilePath().
+   */
+  public function getFilePath($name) {
+    $metamap = $this->getMetadataMap();
+    $module = $metamap[$name];
+    // We are looking for a file in $module/meta/$name.yml
+    $directory = drupal_get_path('module', $module) . '/meta';
+    return $directory  . '/' . $name . '.yml';
+  }
+
+  /**
+   * Implements Drupal\Core\Config\StorageInterface::listAll().
+   */
+  public function listAll($prefix = '') {
+    $names = array_keys($this->getMetadataMap());
+    if (!$prefix) {
+      return $names;
+    }
+    else {
+      foreach ($names as $index => $name) {
+        if (strpos($name, $prefix) !== 0 ) {
+          unset($names[$index]);
+        }
+      }
+      return $names;
+    }
+  }
+
+  /**
+   * Returns a map of all metadata names and the module they belong to.
+   *
+   * @return array
+   *   Array mapping metadata names with module names,
+   */
+  protected function getMetadataMap() {
+    if (!isset($this->metaMap)) {
+      $extension = '.' . self::getFileExtension();
+      foreach (module_list() as $module) {
+        $directory = drupal_get_path('module', $module) . '/meta';
+        if (file_exists($directory)) {
+          $files = glob($directory . '/*' . $extension);
+          foreach ($files as $filename) {
+            $name = basename($filename, $extension);
+            $this->metaMap[$name] = $module;
+          }
+        }
+      }
+    }
+    return $this->metaMap;
+  }
+
+}
diff --git a/core/lib/Drupal/Core/Config/Metadata/NestedElement.php b/core/lib/Drupal/Core/Config/Metadata/NestedElement.php
new file mode 100644
index 0000000..955fe6b
--- /dev/null
+++ b/core/lib/Drupal/Core/Config/Metadata/NestedElement.php
@@ -0,0 +1,200 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Core\Config\Metadata\NestedElement.
+ */
+
+namespace Drupal\Core\Config\Metadata;
+
+use Drupal\Core\Language\Language;
+use Drupal\Core\TypedData\TypedDataInterface;
+use Drupal\Core\TypedData\ContextAwareInterface;
+use Drupal\Component\Utility\NestedArray;
+
+/**
+ * Defines a generic nested configuration element.
+ */
+class NestedElement extends WrapperBase implements TypedDataInterface, ContextAwareInterface {
+  /**
+   * The configuration key relative to the parent's.
+   *
+   * @var string
+   */
+  protected $key;
+
+  /**
+   * The definition for this typed data.
+   *
+   * @var array
+   */
+  protected $definition;
+
+  /**
+   * Parent configuration wrapper.
+   *
+   * @var Drupal\Core\Config\WrapperInterface
+   */
+  protected $parent;
+
+  /**
+   * Implements TypedDataInterface::__construct().
+   */
+  public function __construct(array $definition) {
+    $this->definition = $definition;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getKey().
+   */
+  public function getKey($key = '') {
+    return $this->key . ($key ? '.' . $key : '');
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getConfigData().
+   */
+  public function getConfigData($key = '') {
+    return $this->getParent()->getConfigData($this->getKey($key));
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::setConfigData()
+   */
+  public function setConfigData($key, $value) {
+    $this->getParent()->setConfigData($this->getKey($key), $value);
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::clearConfigData()
+  */
+  public function clearConfigData($key) {
+    $this->getParent()->clearConfigData($this->getKey($key));
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getConfigKey().
+   */
+  public function getConfigKey() {
+    $parent = $this->getParent()->getConfigKey();
+    return ($parent ? $parent . '.' : '') . $this->getKey();
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getBaseMetadata().
+   */
+  public function getBaseMetadata() {
+    return $this->getParent()->getElementMetadata($this->getKey());
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getElementMetadata().
+   */
+  public function getElementMetadata($key = '') {
+    return $key ? parent::getElementMetadata($key) : $this->getDefinition();
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getElementDefinition().
+   */
+  public function getElementDefinition($key = '') {
+    return $key ? parent::getElementDefinition($key) : $this->getDefinition();
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ComplexDataInterface::set().
+   */
+  public function set($property_name, $value) {
+    // Set the value in the parent object that holds the Config.
+    $this->getParent()->set($this->getKey($property_name), $value);
+    return $this;
+  }
+
+  /**
+   * Implements TypedDataInterface::getType().
+   */
+  public function getType() {
+    return $this->definition['type'];
+  }
+
+  /**
+   * Implements TypedDataInterface::getDefinition().
+   */
+  public function getDefinition() {
+    return $this->definition;
+  }
+
+  /**
+   * Implements TypedDataInterface::getValue().
+   */
+  public function getValue() {
+    return $this->toValue();
+  }
+
+  /**
+   * Implements TypedDataInterface::setValue().
+   */
+  public function setValue($value) {
+    // Due to how the constructor works, this function may get called before
+    // the parent is set.
+    // @see Drupal\Core\TypedData\TypedDataManager::createInstance()
+    if ($this->getParent()) {
+      $this->getParent()->set($this->getKey(), $value);
+    }
+  }
+
+  /**
+   * Implements TypedDataInterface::getString().
+   */
+  public function getString() {
+    return (string) $this->getValue();
+  }
+
+  /**
+   * Implements TypedDataInterface::validate().
+   */
+  public function validate() {
+    // This will be ok if we have any config data at all.
+    $data = $this->getConfigData();
+    return isset($data);
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ContextAwareInterface::getName().
+   */
+  public function getName() {
+    return $this->key;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ContextAwareInterface::getName().
+   */
+  public function setName($name) {
+    $this->key = $name;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ContextAwareInterface::getParent().
+  */
+  public function getParent() {
+    return $this->parent;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\ContextAwareInterface::setParent().
+  */
+  public function setParent($parent) {
+    $this->parent = $parent;
+    if ($langcode = $parent->isTranslation()) {
+      // If the parent element is a translation this will be the same.
+      $this->setTranslation($langcode, (bool)$parent->isTranslation(TRUE));
+    }
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\TranslatableInterface::language().
+   */
+  public function language() {
+    return $this->getParent()->language();
+  }
+}
diff --git a/core/lib/Drupal/Core/Config/Metadata/WrapperBase.php b/core/lib/Drupal/Core/Config/Metadata/WrapperBase.php
new file mode 100644
index 0000000..6139e56
--- /dev/null
+++ b/core/lib/Drupal/Core/Config/Metadata/WrapperBase.php
@@ -0,0 +1,395 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Core\Config\Metadata\WrapperBase.
+ */
+
+namespace Drupal\Core\Config\Metadata;
+
+use Drupal\Component\Utility\NestedArray;
+use Drupal\Core\TypedData\ListInterface;
+use ArrayIterator;
+use IteratorAggregate;
+use InvalidArgumentException;
+
+/**
+ * Base class for a properties wrapper using configuration data and metadata.
+ */
+abstract class WrapperBase implements IteratorAggregate, WrapperInterface {
+  /**
+   * The language code for which this is a translation.
+   *
+   * @var string
+   */
+  protected $translation;
+
+  /**
+   * Whether this is a 'strict' translation.
+   *
+   * @var bool
+   */
+  protected $strict;
+
+  /**
+   * Cached metadata for elements.
+   *
+   * @var array
+   */
+  protected $metadata;
+
+  /**
+   * Builds properties using configuration data and metadata.
+   *
+   * @param string $key
+   *   Configuration key.
+   *
+   * @result Drupal\Core\TypedData\TypedDataInterface|null
+   *   A fully built TypedDataInterface object.
+   */
+  protected function buildElement($key) {
+    // Build element array to start with.
+    $definition = $this->getElementDefinition($key);
+    $value = $this->getConfigData($key);
+
+    // If this is a translation, the element may need some more work.
+    if (!$this->isTranslation() || $this->translateElement($value, $definition)) {
+      // If this is an end property, the value will be the configuration data.
+      // If it is a NestedElement, it won't be set, but retrieved from
+      // the parent element. See NestedElement::setValue()
+      $context = array('name' => $key, 'parent' => $this);
+      return typed_data()->create($definition, $value, $context);
+    }
+    else {
+      // The element failed the translation stage.
+      return NULL;
+    }
+  }
+
+  /**
+   * Translate element if it fits our translation criteria.
+   *
+   * @param mixed $value
+   *   Element value.
+   * @param array $metadata;
+   *   Element's metadata.
+   *
+   * @return bool
+   *   Whether the element fits the translation criteria.
+   */
+  protected function translateElement(&$value, &$metadata) {
+    if (!empty($metadata['children']) || $metadata['type'] == 'config_list') {
+      // The child element will get the translation information from the parent.
+      return TRUE;
+    }
+    elseif ($this->isTranslatableType($metadata['type'], $value)) {
+      if ($translation = $this->translateString($value, $metadata)) {
+        $value = $translation;
+        return TRUE;
+      }
+    }
+    // The element doesn't have a translation, if strict mode we drop it.
+    return $this->isTranslation(FALSE);
+  }
+
+  /**
+   * Check whether a data type is translatable.
+   *
+   * @todo Use a list of fixed types for now, but need to learn how to get the
+   * 'translatable' property from hook_data_type_info().
+   */
+  protected function isTranslatableType($type, $value) {
+    return is_string($value) && in_array($type, array('label', 'text'));
+  }
+
+  /**
+   * Gets translation for string using localization system.
+   *
+   * @todo Extend the locale API to make the difference between default
+   * and changed strings.
+   *
+   * So far we only know how to translate strings from English so only
+   * English strings should be marked as translatable for now.
+   *
+   * @param string $source
+   *   The source string
+   * @param array() $metadata
+   *   The element's metadata that may contain a 'string_context'
+   *
+   * @return string
+   *   Translated string, that will be an empty string if it doesn't fit our requirements
+   */
+  protected function translateString($source, $metadata) {
+    if ($source && $this->language()->langcode == 'en') {
+      $context = isset($metadata['string_context']) ? $metadata['string_context'] : '';
+      // @todo Known issue, translates user defined strings.
+      $translation = t($source, array(), array('context' => $context, 'langcode' => $this->translation));
+      // We are only interested in actual translations.
+      if ($translation != $source) {
+        return $translation;
+      }
+    }
+    return '';
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getElement()
+   */
+  public function getElement($key) {
+    $parts = explode('.', $key);
+    $first = array_shift($parts);
+    $data = $this->getConfigData($first);
+    if (isset($data) && $element = $this->buildElement($first)) {
+      $subkey = implode('.', $parts);
+      if (!$subkey) {
+        return $element;
+      }
+      elseif ($element instanceof WrapperInterface) {
+        return $element->getElement($subkey);
+      }
+    }
+    else {
+      // Else the element does not exist or is not a valid translation.
+      throw new InvalidArgumentException("The configuration property $key doesn't exist.");
+    }
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getElementDefinition().
+   */
+  public function getElementDefinition($key = '') {
+    $element = $children = array();
+    foreach ($this->getElementMetadata($key) as $name => $value) {
+      if (strpos($name, '.') === 0) {
+        // Metadata properties will be prefixed by a dot and will be scalar values.
+        $element[substr($name, 1)] = $value;
+      }
+      else {
+        // Children elements will be arrays of metadata themselves.
+        $children[$name] = $value;
+      }
+    }
+    // Mark the element if it has children.
+    $element['children'] = !empty($children);
+    // The default type will depend on whether we've got children or not.
+    if (!isset($element['type'])) {
+      $element['type'] = $element['children'] || is_array($this->getConfigData($key)) ? 'config_list' : 'string';
+    }
+    return $element;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getElementMetadata().
+   */
+  public function getElementMetadata($key = '') {
+    if (!$key) {
+      // This is the base element's metadata.
+      return $this->getMetadata();
+    }
+    else {
+      // Metadata for nested elements must be built before.
+      if (!isset($this->metadata[$key])) {
+        $this->metadata[$key] = $this->buildElementMetadata($key);
+      }
+      return $this->metadata[$key];
+    }
+  }
+
+  /**
+   * Builds metadata for a child element.
+   *
+   * @param $key
+   *   Element's key.
+   */
+  protected function buildElementMetadata($key) {
+    $meta = $this->getMetadata($key);
+    $definition = $this->getElementDefinition();
+    if (isset($definition['elements.base']) && $base = config_metadata($definition['items.base'])) {
+      // Load common base metadata for all elements.
+      $meta = NestedArray::mergeDeep($base, $meta);
+    }
+    if (isset($definition['elements.name'])) {
+      // Load specific metadata for each element.
+      $name = $definition['elements.name'];
+      $element_key = $key;
+      if (isset($definition['elements.key'])) {
+        // The search key for this one is in the data itself.
+        $key_name = str_replace('%', $key, $definition['elements.key']);
+        $element_key = $this->getConfigData($key_name);
+      }
+      if ($element_key) {
+        $name = str_replace('%', $element_key, $name);
+      }
+      if ($merge = config_metadata($name)) {
+        $meta = NestedArray::mergeDeep($meta, $merge);
+      }
+    }
+    if (isset($definition['elements.label']) && !isset($meta['.label'])) {
+      // Extract element's label from configuration data.
+      $key_name = str_replace('%', $key, $definition['elements.label']);
+      if ($label = $this->getConfigData($key_name)) {
+        $meta['.label'] = $label;
+      }
+    }
+    return $meta;
+  }
+
+  /**
+   * Gets common metadata for all nested keys.
+   *
+   * @return array
+   *   Metadata array.
+   */
+  protected function getCommonMetadata() {
+    $definition = $this->getElementDefinition();
+    if (isset($basemeta['config_base'])) {
+      return config_metadata($basemeta['config_base']);
+    }
+    else {
+      return array();
+    }
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getLabel().
+   */
+  public function getLabel($key = '') {
+    $definition = $this->getElementDefinition($key);
+    return isset($definition['label']) ? $definition['label'] : $this->getKey($key);
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getMetadata().
+   */
+  public function getMetadata($key = '') {
+    $metadata = $this->getBaseMetadata();
+    if ($key) {
+      return isset($metadata[$key]) ? $metadata[$key] : array();
+    } else {
+      return $metadata;
+    }
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::getConfigKeys().
+   */
+  public function getConfigKeys() {
+    $list = array_keys($this->getConfigData());
+    // If a strict translation, filter out elements without translation.
+    if ($this->isTranslation(TRUE)) {
+      $list = array_filter($list, array($this, 'hasTranslation'));
+    }
+    return $list;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::toArray().
+   */
+  public function toArray() {
+    $array = array();
+    foreach ($this->getConfigKeys() as $key) {
+      $element = $this->buildElement($key);
+      if ($element && !($element instanceof ListInterface && $element->isEmpty())){
+        $array[$key] = $element;
+      }
+    }
+    return $array;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::toArrayValues().
+   */
+  public function toValue() {
+    $array = array();
+    foreach ($this->toArray() as $name => $element) {
+      $value = $element->getValue();
+      // Filter out NULL values and empty arrays.
+      if ($value || isset($value) && !is_array($value)) {
+        $array[$name] = $value;
+      }
+    }
+    return $array;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::toList().
+   */
+  public function toList($base_name = '') {
+    $list = array();
+    foreach ($this->toArray() as $key => $element) {
+      $name = $base_name ? $base_name . '.' . $key : $key;
+      if ($element instanceof WrapperInterface) {
+        $list += $element->toList($name);
+      }
+      else {
+        $list[$name] = $element;
+      }
+    }
+    return $list;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\TranslatableInterface::getTranslationLanguages().
+   */
+  public function getTranslationLanguages($include_default = TRUE) {
+    // These will be all enabled languages.
+    $languages = language_list(LANGUAGE_CONFIGURABLE);
+    $default = $this->language();
+    if ($include_default) {
+      $languages[$default->langcode] = $default;
+    }
+    else {
+      unset($language[$default->langcode]);
+    }
+    return $languages;
+  }
+
+  /**
+   * Implements Drupal\Core\TypedData\TranslatableInterface::getTranslation().
+  */
+  public function getTranslation($langcode, $strict = TRUE) {
+    $translation = clone $this;
+    $translation->setTranslation($langcode, $strict);
+    return $translation;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::setTranslation().
+   */
+  public function setTranslation($langcode, $strict) {
+    $this->translation = $langcode;
+    $this->strict = $strict;
+  }
+
+  /**
+   * Implements Drupal\Core\Config\Metadata\WrapperInterface::isTranslation().
+   */
+  public function isTranslation($strict = NULL) {
+    if (isset($this->translation) && (!isset($strict) || $strict == $this->strict)) {
+      return $this->translation;
+    }
+  }
+
+  /**
+   * Check whether the element has a translation.
+   *
+   * @param string $key
+   *   Element key.
+   *
+   * @return bool
+   *   TRUE if the element is translatable and has translation, FALSE otherwise.
+   */
+  protected function hasTranslation($key) {
+    $metadata = $this->getElementDefinition($key);
+    $value = $this->getConfigData($key);
+    return $this->translateElement($value, $metadata);
+  }
+
+  /**
+   * Implements IteratorAggregate::getIterator().
+   */
+  public function getIterator() {
+    return new ArrayIterator($this->toArray());
+  }
+
+}
diff --git a/core/lib/Drupal/Core/Config/Metadata/WrapperInterface.php b/core/lib/Drupal/Core/Config/Metadata/WrapperInterface.php
new file mode 100644
index 0000000..6275af7
--- /dev/null
+++ b/core/lib/Drupal/Core/Config/Metadata/WrapperInterface.php
@@ -0,0 +1,230 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\Core\Config\Metadata\WrapperInterface.
+ */
+
+namespace Drupal\Core\Config\Metadata;
+
+use Drupal\Core\TypedData\ComplexDataInterface;
+use Drupal\Core\TypedData\TranslatableInterface;
+
+/**
+ * Interface for data structures that contain configuration data and metadata.
+ */
+interface WrapperInterface extends TranslatableInterface {
+
+  /**
+   * Gets relative key for this structure or children of it.
+   *
+   * @param string $key
+   *   (optional) Child element's key.
+   *
+   * @return string
+   *   Configuration key relative to this structure.
+   */
+  public function getKey($key = '');
+
+  /**
+   * Gets human readable label for this structure or children of it.
+   *
+   * @return string
+   *   Label
+   */
+  public function getLabel($key = '');
+
+  /**
+   * Gets raw metadata array for this element.
+   *
+   * @return array
+   *   The full metadata array for this element.
+   */
+  public function getBaseMetadata();
+
+  /**
+   * Gets raw metadata array for the current wrapper or a child element.
+   *
+   * @param $key
+   *   (optional) Key within the metadata array. Defaults to empty string.
+   *
+   * @return array
+   *   The full metadata array for this element.
+   */
+  public function getMetadata($key = '');
+
+  /**
+   * Gets the built metadata array for the current wrapper or a child element.
+   *
+   * The element's metadata is an array that may contain the following
+   * elements:
+   * - Any of the keys used by getElementDefinition() prefixed by a dot.
+   * - Any nested array that will keyed by configuration key and will be mapped
+   *  to a nested WrapperInterface or TypedDataInterface element.
+   *
+   * Example metadata from module/system/meta/system.site.yml
+   *
+   *   name:
+   *     .label: 'Site name'
+   *     .type: 'label'
+   *   mail:
+   *     .label: 'Site mail'
+   *   slogan:
+   *     .label: 'Site slogan'
+   *     .type: 'text'
+   *   page:
+   *     403:
+   *       .label: 'Default 403 (access denied) page'
+   *       .type: 'string'
+   *     404:
+   *       .label: 'Default 404 (not found) page'
+   *       .type: 'string'
+   *     front:
+   *       .label: 'Default front page'
+   *       .type: 'string'
+   *
+   * @param $key
+   *   (optional) Key within the metadata array. Defaults to empty string.
+   *
+   * @return array
+   *   The metadata for the element, defaults to empty array().
+   */
+  public function getElementMetadata($key = '');
+
+  /**
+   * Gets the definition array for the current wrapper a child element.
+   *
+   * The element definition is an array that may contain any of the following
+   * optional elements:
+   * - 'label', Human readable name for the element.
+   * - 'elements.name', Configuration name for each of the nested elements,
+   *   may contain the placeholder '%' to replace by the element's key.
+   * - 'elements.key', Name of the configuration data property to be used as
+   *   the key for name replacement. It may contain the placeholder '%'
+   *   to be replaced by the element's key.
+   * - 'elements.label', Name of the configuration data property to be used as
+   *   the label for the element definition. It may contain the placeholder '%'
+   *   to be replaced by the element's key.
+   * - Any of the keys used for the $definition parameter of
+   *   Drupal\Core\TypedData\TypedDataManager::create().
+   *
+   * @param $key
+   *   (optional) Key within the metadata array. Defaults to empty string.
+   *
+   * @return array
+   *   The definition for the element, defaults to empty array().
+   */
+  public function getElementDefinition($key = '');
+
+  /**
+   * Gets a nested property object using a key with dot notation.
+   *
+   * @param string $key
+   *   Configuration key.
+   *
+   * @return \Drupal\Core\TypedData\TypedDataInterface|\Drupal\Core\TypedData\ListInterface
+   *   The property object or a list of property objects.
+   */
+  public function getElement($key);
+
+  /**
+   * Gets raw configuration data.
+   *
+   * @param $key
+   *   (optional) Relative key within the configuration data.
+   *
+   * @return array|string|null
+   *   Array or item of configuration data.
+   */
+  public function getConfigData($key = '');
+
+  /**
+   * Gets valid configuration data keys.
+   *
+   * @param $key
+   *   (optional) Relative key within the configuration data.
+   *
+   * @return array
+   *   Array valid configuration data keys.
+   */
+  public function getConfigKeys();
+
+  /**
+   * Sets raw configuration data.
+   *
+   * @param $key
+   *   Relative key within the configuration data.
+   * @param $value
+   *   Value to set in the configuration data.
+   */
+  public function setConfigData($key, $value);
+
+  /**
+   * Delete configuration data.
+   *
+   * @param $key
+   *   Relative key within the configuration data.
+   */
+  public function clearConfigData($key);
+
+  /**
+   * Gets configuration key mapping to this configuration data.
+   *
+   * @return string
+   *   Array or item of configuration data.
+   */
+  public function getConfigKey();
+
+  /**
+   * Gets typed data properties as array.
+   *
+   * @return array
+   *   List of TypedDataInterface objects indexed by key.
+   */
+  public function toArray();
+
+  /**
+   * Gets simple value or all values as a nested array.
+   *
+   * This is similar to the configuration data but properties are built before
+   * and then converted into values.
+   *
+   * @return array
+   *   List of values indexed by key.
+   */
+  public function toValue();
+
+  /**
+   * Gets all contained typed data properties as plain array.
+   *
+   * @param string $base_name
+   *   Base name to prepend to all of the element's names.
+   *
+   * @return array
+   *   List of TypedDataInterface objects indexed by full name (keys with dot
+   *   notation).
+   */
+  public function toList($base_name = '');
+
+  /**
+   * Set translation parameters.
+   *
+   * @param string $langcode
+   *   The language code for the translation.
+   * @param bool $strict
+   *   Whether this is a strict translation.
+   */
+  public function setTranslation($langcode, $strict);
+
+  /**
+   * Check whether this element is a translation.
+   *
+   * @param $strict
+   *   (optional) If set will check the strict parameter of the translation.
+   *
+   * @return string|NULL
+   *   The language code if this is a translation, NULL otherwise.
+   */
+  public function isTranslation($strict = NULL);
+
+}
diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigMetadataTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigMetadataTest.php
new file mode 100644
index 0000000..1688979
--- /dev/null
+++ b/core/modules/config/lib/Drupal/config/Tests/ConfigMetadataTest.php
@@ -0,0 +1,178 @@
+<?php
+
+/**
+ * @file
+ * Definition of Drupal\config\Tests\ConfigMetadataTest.
+ */
+
+namespace Drupal\config\Tests;
+
+use Drupal\Core\Config\ConfigWrapper;
+use Drupal\simpletest\WebTestBase;
+
+/**
+ * Tests Metadata for configuration objects.
+ */
+class ConfigMetadataTest extends WebTestBase {
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = array('locale', 'image');
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Configuration metadata',
+      'description' => 'Tests Metadata for configuration objects.',
+      'group' => 'Configuration',
+    );
+  }
+
+  /**
+   * Tests the basic metadata retrieval layer.
+   */
+  function testBasicMetadata() {
+    // Simple case, straight metadata.
+    $metadata = config_metadata('system.maintenance');
+    $expected = array(
+      'enabled' => array(
+        '.label' => 'Put site into maintenance mode',
+        '.type' => 'boolean'
+       ),
+      'message' => array(
+        '.label' =>  'Message to display when in maintenance mode',
+        '.type' => 'text',
+      ),
+    );
+    $this->assertEqual($metadata, $expected, 'Retrieved the right metadata for system.maintenance');
+    // More complex case, fallback to parent name.
+    $metadata = config_metadata('image.style.large');
+    $expected = array(
+      'name' => array(
+        '.label' => 'Machine name',
+        '.type' => 'string',
+      ),
+      'label' => array(
+        '.label' => 'Label',
+        '.type' => 'label'
+      ),
+      'effects' => array(
+        '.label' =>  'Style effects',
+        '.type' => 'config_list',
+        '.elements.name' => 'image.style.effects.%',
+        '.elements.key' => '%.name'
+      )
+    );
+    $this->assertEqual($metadata, $expected, 'Retrieved the right metadata for image.style.large');
+
+    // Most complex case, fallback to parent name with merging
+    $metadata = config_metadata('image.style.effects.image_scale');
+    $expected = array(
+      '.label' => 'Image scale',
+      'name' => array(
+        '.label' => 'Style name',
+        '.type' => 'string',
+      ),
+      'data' => array(
+        '.label' => 'Data',
+        '.type' => 'config_list',
+        'width' => array(
+          '.label' => 'Width',
+          '.type' => 'integer'
+        ),
+        'height' => array(
+          '.label' =>  'Height',
+          '.type' => 'integer',
+        ),
+        'upscale' => array(
+          '.label' =>  'Upscale',
+          '.type' => 'boolean',
+        )
+      ),
+      'weight' => array(
+        '.label' => 'Weight',
+        '.type' => 'integer'
+      ),
+      'ieid' => array(
+        '.label' =>  'IEID',
+      ),
+
+    );
+    $this->assertEqual($metadata, $expected, 'Retrieved the right metadata for image.style.effects.scale');
+
+  }
+
+  /**
+   * Tests metadata applied to configuration objects.
+   */
+  function testConfigMetadata() {
+    // Try some simple properties.
+    $meta = config_wrapper('system.site');
+    $property = $meta->get('name');
+    $this->assertTrue(is_a($property, 'Drupal\Core\TypedData\Type\String'), 'Got the right wrapper fo the site name property.');
+    $this->assertEqual($property->getType(), 'label', 'Got the right string type for site name data.');
+    $this->assertEqual($property->getValue(), 'Drupal', 'Got the right string value for site name data.');
+
+    $property = $meta->get('page.front');
+    $this->assertTrue(is_a($property, 'Drupal\Core\TypedData\Type\String'), 'Got the right wrapper fo the page.front property.');
+    $this->assertEqual($property->getType(), 'string', 'Got the right type for page.front data (undefined).');
+    $this->assertEqual($property->getValue(), 'user', 'Got the right value for page.front data.');
+
+    // Check nested array of properties.
+    $list = $meta->get('page');
+    $this->assertEqual(count($list), 3, 'Got a list with the right number of properties for site page data');
+    $this->assertTrue(isset($list['front']) && isset($list['403']) && isset($list['404']), 'Got a list with the right properties for site page data.');
+    $this->assertEqual($list['front']->getValue(), 'user', 'Got the right value for page.front data from the list.');
+
+    // Now let's try something more complex, with nested objects.
+    $wrapper = config_wrapper('image.style.large');
+    $effects = $wrapper->get('effects');
+    // The function is_array() doesn't work with ArrayAccess, so we use count().
+    $this->assertTrue(count($effects) == 1, 'Got an array with effects for image.style.large data');
+    $ieid = key($effects->toArray());
+    $effect = $wrapper->get('effects.' . $ieid);
+    $this->assertTrue(count($effect['data']) && $effect['name']->getValue() == 'image_scale', 'Got data for the image scale effect from metadata.');
+    $this->assertEqual($effect['data']['width']->getType(), 'integer', 'Got the right type for the scale effect width.');
+    $this->assertEqual($effect['data']['width']->getValue(), 480, 'Got the right value for the scale effect width.' );
+    // Try config key and getting nested properties.
+    $key = 'effects.' . $ieid . '.data';
+    $this->assertEqual($effect['data']->getConfigKey(), $key, 'Got the right configuration key for a nested image styple effect');
+    $object = $wrapper->get($key);
+    $this->assertEqual(get_class($effect['data']), get_class($object), 'Got the same object class using different keys with dot notation.');
+    $this->assertEqual($effect['data']->toValue(), $object->toValue(), 'Got the same object values using different keys with dot notation.');
+
+    // Finally update some object using a configuration wrapper.
+    $new_slogan = 'Site slogan for testing configuration metadata';
+    $wrapper = config_wrapper('system.site');
+    $wrapper->set('slogan', $new_slogan);
+    $site_slogan = $wrapper->get('slogan');
+    $this->assertEqual($site_slogan->getValue(), $new_slogan, 'Successfully updated the contained configuration data');
+  }
+
+  /**
+   * Tests metadata applied to configuration objects.
+   */
+  function testConfigTranslation() {
+    // Create translation for site name using string overrides.
+    $langcode = 'xx';
+    $site_name = $this->randomName(20);;
+    $translation['']['Drupal'] = $site_name;
+    variable_set('locale_custom_strings_' . $langcode, $translation);
+    $this->refreshVariables();
+
+    $wrapper = config_wrapper('system.site');
+
+    // Get strict translation
+    $translation = $wrapper->getTranslation($langcode, TRUE);
+    $properties = $translation->toList();
+    $this->assertEqual(count($properties), 1, 'Got the right number of properties with strict translation');
+    $this->assertEqual($properties['name']->getValue(), $site_name, 'Got the right translation for site name with strict translation');
+    // Get non strict translation
+    $translation = $wrapper->getTranslation($langcode, FALSE);
+    $properties = $translation->toList();
+    $this->assertEqual(count($properties), 6, 'Got the right number of properties with non strict translation');
+    $this->assertEqual($properties['name']->getValue(), $site_name, 'Got the right translation for site name with non strict translation');
+
+  }
+}
diff --git a/core/modules/image/meta/image.style.%.yml b/core/modules/image/meta/image.style.%.yml
new file mode 100644
index 0000000..99b54ba
--- /dev/null
+++ b/core/modules/image/meta/image.style.%.yml
@@ -0,0 +1,11 @@
+name:
+  .label: 'Machine name'
+  .type: string
+label:
+  .label: 'Label'
+  .type: label
+effects:
+  .label: 'Style effects'
+  .type: config_list
+  .elements.name: 'image.style.effects.%'
+  .elements.key: '%.name'
diff --git a/core/modules/image/meta/image.style.effects.%.yml b/core/modules/image/meta/image.style.effects.%.yml
new file mode 100644
index 0000000..7191867
--- /dev/null
+++ b/core/modules/image/meta/image.style.effects.%.yml
@@ -0,0 +1,11 @@
+name:
+  .label: 'Style name'
+  .type: string
+data:
+  .label: 'Data'
+  .type: config_list
+weight:
+  .label: 'Weight'
+  .type: integer
+ieid:
+  .label: 'IEID'
diff --git a/core/modules/image/meta/image.style.effects.image_scale.yml b/core/modules/image/meta/image.style.effects.image_scale.yml
new file mode 100644
index 0000000..30b017e
--- /dev/null
+++ b/core/modules/image/meta/image.style.effects.image_scale.yml
@@ -0,0 +1,11 @@
+.label: 'Image scale'
+data:
+  width:
+    .label: 'Width'
+    .type: 'integer'
+  height:
+    .label: 'Height'
+    .type: 'integer'
+  upscale:
+    .label: 'Upscale'
+    .type: 'boolean'
diff --git a/core/modules/system/meta/system.maintenance.yml b/core/modules/system/meta/system.maintenance.yml
new file mode 100644
index 0000000..96be6e2
--- /dev/null
+++ b/core/modules/system/meta/system.maintenance.yml
@@ -0,0 +1,6 @@
+enabled:
+  .label: 'Put site into maintenance mode'
+  .type: boolean
+message:
+  .label: 'Message to display when in maintenance mode'
+  .type: text
diff --git a/core/modules/system/meta/system.site.yml b/core/modules/system/meta/system.site.yml
new file mode 100644
index 0000000..32f09ee
--- /dev/null
+++ b/core/modules/system/meta/system.site.yml
@@ -0,0 +1,18 @@
+name:
+  .label: 'Site name'
+  .type: label
+mail:
+  .label: 'Site mail'
+slogan:
+  .label: 'Site slogan'
+  .type: text
+page:
+  .type: config_list
+  .label: 'Default pages'
+  403:
+    .label: 'Default 403 (access denied) page'
+  404:
+    .label: 'Default 404 (not found) page'
+  front:
+    .label: 'Default front page'
+ 
\ No newline at end of file
diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index 34e36fe..75427c0 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -2067,6 +2067,31 @@ function system_data_type_info() {
       'class' => '\Drupal\Core\Entity\Field\Type\EntityReferenceItem',
       'list class' => '\Drupal\Core\Entity\Field\Type\Field',
     ),
+    'config_list' => array(
+      'label' => t('Configuration list'),
+      'description' => t('List of configuration data'),
+      'class' => 'Drupal\Core\Config\Metadata\ListElement',
+    ),
+    'config_element' => array(
+      'label' => t('Nested configuration'),
+      'description' => t('Nested configuration data'),
+      'class' => 'Drupal\Core\Config\Metadata\NestedElement',
+    ),
+    // These are UI string types.
+    'label' => array(
+      'label' => t('Label'),
+      'description' => t('Short object name.'),
+      'class' => '\Drupal\Core\TypedData\Type\String',
+      'primitive type' => Primitive::STRING,
+      'translatable' => TRUE,
+    ),
+    'text' => array(
+       'label' => t('Text'),
+       'description' => t('Textual content.'),
+       'class' => '\Drupal\Core\TypedData\Type\String',
+       'primitive type' => Primitive::STRING,
+       'translable' => TRUE,
+    ),
   );
 }
 
diff --git a/core/modules/user/meta/user.mail.%.yml b/core/modules/user/meta/user.mail.%.yml
new file mode 100644
index 0000000..79561ac
--- /dev/null
+++ b/core/modules/user/meta/user.mail.%.yml
@@ -0,0 +1,8 @@
+.label: 'Mail text'
+subject:
+  .label: 'Subject'
+  .type: 'text'
+body:
+  .label: 'Body'
+  .type: 'text'
+  
\ No newline at end of file
diff --git a/core/modules/user/meta/user.mail.yml b/core/modules/user/meta/user.mail.yml
new file mode 100644
index 0000000..35cbd52
--- /dev/null
+++ b/core/modules/user/meta/user.mail.yml
@@ -0,0 +1,3 @@
+.label: 'User mails'
+.type: config_list
+.elements.name: 'user.mail.%'
