src/Service.php
public function getProviderIconToSize(EmbeddedAsset $embeddedAsset, int $size)
	{
		return is_array($embeddedAsset->providerIcons) ?
			$this->_getImageToSize($embeddedAsset->providerIcons, $size) : null;
	}
public function getProviderIconToSize(EmbeddedAsset $embeddedAsset, int $size)
	{
		return is_array($embeddedAsset->providerIcons) ?
			$this->_getImageToSize($embeddedAsset->providerIcons, $size) : null;
	}
public function getProviderIconToSize ( EmbeddedAsset $ embeddedAsset , int $ size ) { return is_array ( $ embeddedAsset -> providerIcons ) ? $ this -> _getImageToSize ( $ embeddedAsset -> providerIcons , $ size ) : null ; }
Returns the provider icon from an embedded asset closest to some size.
It favours icons that most minimally exceed the supplied size.

@param EmbeddedAsset $embeddedAsset
@param int $size
@return array|null
Returns the provider icon from an embedded asset closest to some size . It favours icons that most minimally exceed the supplied size .