You are here

public function Permissions::getStorage in Search API Saved Searches 8

Retrieves the saved search type storage.

Return value

\Drupal\Core\Entity\EntityStorageInterface The saved search type storage.

File

src/Permissions.php, line 44

Class

Permissions
Provides permissions of the search_api_autocomplete module.

Namespace

Drupal\search_api_saved_searches

Code

public function getStorage() {
  return $this->storage ?: \Drupal::entityTypeManager()
    ->getStorage('search_api_saved_search_type');
}