You are here

public function StorageFactory::getConfiguredStorage in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x src/StorageFactory.php \Drupal\radioactivity\StorageFactory::getConfiguredStorage()

Get the configured incident storage.

Return value

\Drupal\radioactivity\IncidentStorageInterface The configured storage instance.

File

src/StorageFactory.php, line 77

Class

StorageFactory
Storage factory service.

Namespace

Drupal\radioactivity

Code

public function getConfiguredStorage() {
  $type = $this->config
    ->get('type') ?: 'default';
  return $this
    ->get($type);
}