Commit b7a80b09 authored by alexpott's avatar alexpott
Browse files

Issue #2548265 by chx: Improve TypedDataManager doxygen

parent 9f127683
......@@ -92,6 +92,8 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac
*
* @return \Drupal\Core\TypedData\TypedDataInterface
* The instantiated typed data object.
*
* @see \Drupal\Core\TypedData\TypedDataManager::create()
*/
public function createInstance($data_type, array $configuration = array()) {
$data_definition = $configuration['data_definition'];
......@@ -168,10 +170,12 @@ public function create(DataDefinitionInterface $definition, $value = NULL, $name
* @endcode
*
* @param string $data_type
* The data type, for which a data definition should be created.
* The data type plugin ID, for which a data definition object should be
* created.
*
* @return \Drupal\Core\TypedData\DataDefinitionInterface
* A data definition for the given data type.
* A data definition object for the given data type. The class of this
* object is provided by the definition_class in the plugin annotation.
*
* @see \Drupal\Core\TypedData\TypedDataManager::createListDataDefinition()
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment