public function getProviderName(PoolInterface $pool, $providerKey = null) { if (!$providerKey) { $providerKey = $this->fetchProviderKey(); } if ($providerKey && $pool->hasCollection($providerKey->getSlug())) { return $pool->getProviderNameByCollection($providerKey->getSlug()); } return null; }
public function getProviderName(PoolInterface $pool, $providerKey = null) { if (!$providerKey) { $providerKey = $this->fetchProviderKey(); } $contextKey = $this->getSlugify()->slugify($providerKey->getSlug(), '_'); if ($providerKey && $pool->hasCollection($contextKey)) { return $pool->getProviderNameByCollection($contextKey); } return null; }