+
+ // Prefer a specific instance of the typed data manager stored by the data
+ // if it is available. This is necessary for specialized typed data objects,
+ // for example those using the typed config subclass of the manager.
+ $typed_data_manager = method_exists($data, 'getTypedDataManager') ? $data->getTypedDataManager() : $this->typedDataManager;
+