public TypedDataManager::create(DataDefinitionInterface $definition, $value = NULL, $name = NULL, $parent = NULL)
Creates a new typed data object instance.
Parameters
\Drupal\Core\TypedData\DataDefinitionInterface $definition: The data definition of the typed data object. For backwards-compatibility an array representation of the data definition may be passed also.
mixed $value: (optional) The data value. If set, it has to match one of the supported data type format as documented for the data