src/widgets/SocialShare.php
private function combineOptions($driverConfig)
    {
        $options = isset($driverConfig['options']) ? $driverConfig['options'] : [];

        $globalOptions = $this->configurator->getOptions();

        if (empty($globalOptions)) {
            return $options;
        }

        if (isset($options['class'])) {
            Html::addCssClass($globalOptions, $options['class']);
            unset($options['class']);
        }

        return ArrayHelper::merge($globalOptions, $options);
    }
private function combineOptions($driverConfig)
    {
        $options = isset($driverConfig['options']) ? $driverConfig['options'] : [];

        $globalOptions = $this->configurator->getOptions();

        if (empty($globalOptions)) {
            return $options;
        }

        if (isset($options['class'])) {
            Html::addCssClass($globalOptions, $options['class']);
            unset($options['class']);
        }

        return ArrayHelper::merge($globalOptions, $options);
    }
private function combineOptions ( $ driverConfig ) { $ options = isset ( $ driverConfig [ 'options' ] ) ? $ driverConfig [ 'options' ] : [ ] ; $ globalOptions = $ this -> configurator -> getOptions ( ) ; if ( empty ( $ globalOptions ) ) { return $ options ; } if ( isset ( $ options [ 'class' ] ) ) { Html :: addCssClass ( $ globalOptions , $ options [ 'class' ] ) ; unset ( $ options [ 'class' ] ) ; } return ArrayHelper :: merge ( $ globalOptions , $ options ) ; }
Combine global and custom HTML options.

@param array $driverConfig

@return array
Combine global and custom HTML options .