public function getIndexProviders($index)
    {
        if (!isset($this->providers[$index])) {
            throw new \InvalidArgumentException(sprintf('No providers were registered for index "%s".', $index));
        }

        $providers = [];
        foreach ($this->providers[$index] as $type => $providerId) {
            $providers[$type] = $this->getProvider($index, $type);
        }

        return $providers;
    }
public function getIndexProviders($index)
    {
        if (!isset($this->providers[$index])) {
            throw new \InvalidArgumentException(sprintf('No providers were registered for index "%s".', $index));
        }

        $providers = [];
        foreach ($this->providers[$index] as $type => $providerId) {
            $providers[$type] = $this->getProvider($index, $type);
        }

        return $providers;
    }
public function getIndexProviders ( $ index ) { if ( ! isset ( $ this -> providers [ $ index ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'No providers were registered for index "%s".' , $ index ) ) ; } $ providers = [ ] ; foreach ( $ this -> providers [ $ index ] as $ type => $ providerId ) { $ providers [ $ type ] = $ this -> getProvider ( $ index , $ type ) ; } return $ providers ; }
Gets all providers for an index.

Providers will be indexed by "type" strings in the returned array.

@param string $index

@return PagerProviderInterface[]|

@throws \InvalidArgumentException if no providers were registered for the index
Gets all providers for an index .