src/widgets/ArraySpoiler.php
public function getButtonLabel($label)
    {
        if ($label instanceof Closure) {
            $label = call_user_func($label, $this);
        } else {
            $label = Yii::t('hipanel', $label, ['count' => count($this->getSpoiledItems())]);
        }

        return $label;
    }
public function getButtonLabel($label)
    {
        if ($label instanceof Closure) {
            $label = call_user_func($label, $this);
        } else {
            $label = Yii::t('hipanel', $label, ['count' => count($this->getSpoiledItems())]);
        }

        return $label;
    }
public function getButtonLabel ( $ label ) { if ( $ label instanceof Closure ) { $ label = call_user_func ( $ label , $ this ) ; } else { $ label = Yii :: t ( 'hipanel' , $ label , [ 'count' => count ( $ this -> getSpoiledItems ( ) ) ] ) ; } return $ label ; }
Returns the button label.

@param $label string|Closure
@return mixed|string
Returns the button label .