public function embed(UriInterface $url, $providerName)
    {
        $adapter = $this->getUrlAdapter($url);
        $providers = $adapter->getProviders();
        if (!isset($providers[$providerName])) {
            return [];
        }
        /** @var \Embed\Providers\Provider $provider */
        $provider = $providers[$providerName];

        return $provider->getBag()->getAll();
    }
public function embed(UriInterface $url, $providerName)
    {
        $adapter = $this->getUrlAdapter($url);
        $providers = $adapter->getProviders();
        if (!isset($providers[$providerName])) {
            return [];
        }
        /** @var \Embed\Providers\Provider $provider */
        $provider = $providers[$providerName];

        return $provider->getBag()->getAll();
    }
public function embed ( UriInterface $ url , $ providerName ) { $ adapter = $ this -> getUrlAdapter ( $ url ) ; $ providers = $ adapter -> getProviders ( ) ; if ( ! isset ( $ providers [ $ providerName ] ) ) { return [ ] ; } /** @var \Embed\Providers\Provider $provider */ $ provider = $ providers [ $ providerName ] ; return $ provider -> getBag ( ) -> getAll ( ) ; }
Return embed information from a given URL.

@param UriInterface $url
@param string       $providerName

@return array
Return embed information from a given URL .