function TypedData::createInstance
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::createInstance()
- 8.9.x core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::createInstance()
- 10 core/lib/Drupal/Core/TypedData/TypedData.php \Drupal\Core\TypedData\TypedData::createInstance()
Overrides TypedDataInterface::createInstance
File
-
core/
lib/ Drupal/ Core/ TypedData/ TypedData.php, line 46
Class
- TypedData
- The abstract base class for typed data.
Namespace
Drupal\Core\TypedDataCode
public static function createInstance($definition, $name = NULL, ?TraversableTypedDataInterface $parent = NULL) {
return new static($definition, $name, $parent);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.