/** * {@inheritDoc} */ public function getSearchMetadataFactory($key) { return $this->storageManager->getSearchClient($key)->getSearchMetadataFactory(); }
/** * 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()); }