src/widgets/SocialShare.php
protected function getLinkLabel($driverConfig, $defaultLabel)
    {
        return $this->isIconsEnabled()
            ? Html::tag('i', '', ['class' => $this->configurator->getIconSelector($driverConfig['class'])])
            : (isset($driverConfig['label']) ? $driverConfig['label'] : $defaultLabel);
    }
protected function getLinkLabel($driverConfig, $defaultLabel)
    {
        return $this->isIconsEnabled()
            ? Html::tag('i', '', ['class' => $this->configurator->getIconSelector($driverConfig['class'])])
            : (isset($driverConfig['label']) ? $driverConfig['label'] : $defaultLabel);
    }
protected function getLinkLabel ( $ driverConfig , $ defaultLabel ) { return $ this -> isIconsEnabled ( ) ? Html :: tag ( 'i' , '' , [ 'class' => $ this -> configurator -> getIconSelector ( $ driverConfig [ 'class' ] ) ] ) : ( isset ( $ driverConfig [ 'label' ] ) ? $ driverConfig [ 'label' ] : $ defaultLabel ) ; }
Build label for driver.

@param array     $driverConfig
@param string    $defaultLabel

@return string
Build label for driver .