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