/** * {@inheritDoc} */ public function getPersistenceMetadataFactory($key) { return $this->storageManager->getPersister($key)->getPersistenceMetadataFactory(); }
/** * Determines the persister to use for the provided model key. * * @param string $typeKey The model type key. * @return PersisterInterface */ public function getPersisterFor($typeKey) { $metadata = $this->getMetadataForType($typeKey); return $this->storageManager->getPersister($metadata->persistence->getKey()); }