X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FConfig%2FTypedConfigManagerInterface.php;h=5c3779fd1a20511258219f3d361a6b1d418ff3f9;hb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;hp=5beeb6f1cd72e4ca8c06f281eb28249357b8f69c;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php b/web/core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php index 5beeb6f1c..5c3779fd1 100644 --- a/web/core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php +++ b/web/core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php @@ -72,4 +72,18 @@ interface TypedConfigManagerInterface extends TypedDataManagerInterface { */ public function getDefinition($plugin_id, $exception_on_invalid = TRUE); + /** + * Gets typed data for a given configuration name and its values. + * + * @param string $config_name + * The machine name of the configuration. + * @param array $config_data + * The data associated with the configuration. Note: This configuration + * doesn't yet have to be stored. + * + * @return \Drupal\Core\TypedData\TraversableTypedDataInterface + * The typed configuration element. + */ + public function createFromNameAndData($config_name, array $config_data); + }