src/FieldHandlers/Config/Config.php
public function getProvider(string $name) : string
    {
        $providers = $this->getProviders();
        if (!in_array($name, array_keys($providers))) {
            throw new InvalidArgumentException("Provider for [$name] is not configured");
        }

        return $providers[$name];
    }
public function getProvider(string $name) : string
    {
        $providers = $this->getProviders();
        if (!in_array($name, array_keys($providers))) {
            throw new InvalidArgumentException("Provider for [$name] is not configured");
        }

        return $providers[$name];
    }
public function getProvider ( string $ name ) : string { $ providers = $ this -> getProviders ( ) ; if ( ! in_array ( $ name , array_keys ( $ providers ) ) ) { throw new InvalidArgumentException ( "Provider for [$name] is not configured" ) ; } return $ providers [ $ name ] ; }
Get provider by name

@throws \InvalidArgumentException for invalid provider
@param string $name Name of the provider to get
@return string
Get provider by name