public function getProvider($label)
    {
        if (!isset($this->providers[$label])) {
            throw new InvalidArgumentException(sprintf('Unknown share button provider `%s`', $label));
        }

        return $this->providers[$label];
    }
public function getProvider($label)
    {
        if (!isset($this->providers[$label])) {
            throw new InvalidArgumentException(sprintf('Unknown share button provider `%s`', $label));
        }

        return $this->providers[$label];
    }
public function getProvider ( $ label ) { if ( ! isset ( $ this -> providers [ $ label ] ) ) { throw new InvalidArgumentException ( sprintf ( 'Unknown share button provider `%s`' , $ label ) ) ; } return $ this -> providers [ $ label ] ; }
Retrieves a share button provider from collection by its label.

@param string $label

@return \EzSystems\ShareButtonsBundle\SocialShare\ProviderInterface

@throws \InvalidArgumentException
Retrieves a share button provider from collection by its label .