From 17bc3671382e98e68a7c90add1cb16f3d8101a0f Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Sat, 12 Dec 2015 00:56:28 +0000 Subject: [PATCH] Issue #2592213 by Chi, hussainweb: The documentation for TypedDataManagerInterface::createInstance() is wrong --- .../Core/TypedData/TypedDataManagerInterface.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php b/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php index 5857b9d3bfa..73ad5415423 100644 --- a/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php +++ b/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php @@ -26,11 +26,13 @@ interface TypedDataManagerInterface extends PluginManagerInterface, CachedDiscov * The plugin configuration array, i.e. an array with the following keys: * - data_definition: The data definition object, i.e. an instance of * \Drupal\Core\TypedData\DataDefinitionInterface. - * - name: (optional) If a property or list item is to be created, the name - * of the property or the delta of the list item. - * - parent: (optional) If a property or list item is to be created, the - * parent typed data object implementing either the ListInterface or the - * ComplexDataInterface. + * - name: The name of the property or the delta of the list item if a + * property or list item is to be created. Otherwise, this should be set + * to NULL, but the key must be specified. + * - parent: The parent typed data object implementing either the + * ListInterface or the ComplexDataInterface if a property or list item is + * to be created. Otherwise, this should be set to NULL, but the key must + * be specified. * * @return \Drupal\Core\TypedData\TypedDataInterface * The instantiated typed data object.