src/dashboard/BaseDashboardObject.php
public function setTitle($title)
    {
        if (is_array($title)) {
            list($category, $message) = $title;
            $this->_title =  Yii::t($category, $message);
        } else {
            $this->_title = $title;
        }
    }
public function setTitle($title)
    {
        if (is_array($title)) {
            list($category, $message) = $title;
            $this->_title =  Yii::t($category, $message);
        } else {
            $this->_title = $title;
        }
    }
public function setTitle ( $ title ) { if ( is_array ( $ title ) ) { list ( $ category , $ message ) = $ title ; $ this -> _title = Yii :: t ( $ category , $ message ) ; } else { $ this -> _title = $ title ; } }
Setter method for title.

The title can be either a string on array, if an array is provided the first key is used to defined the yii2 message category and second key
is used in order to find the message. For example the input array `['cmsadmin', 'mytitle']` would be converted to `Yii::t('cmsadmin', 'mytitle')`.

@param string|array $title The title of the dashboard object item, if an array is given the first element is the translation category the second element the message.
Setter method for title .