createFor()
createFor(\Drupal\strata\Tier\TierTarget $target) : \Drupal\strata\Storage\StorageProviderInterface
Builds a provider for one tier's location.
Parameters
| \Drupal\strata\Tier\TierTarget | $target | The tier's bucket and storage class. A target whose location is empty is built exactly as StorageProviderFactoryInterface::create() would build it, so the nearest tier of a single-bucket site is the same object either way. |
Throws
- \RuntimeException
When the endpoint is not configured well enough to address that location.
Returns
\Drupal\strata\Storage\StorageProviderInterface —The provider.