Select Git revision
WidgetIconTrLanguage.php
-
waltermazza authoredwaltermazza authored
WidgetIconTrLanguage.php 1.21 KiB
<?php
/**
* Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
* OPEN 2.0
*
*
* @package arter\amos\translation
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace arter\amos\translation\widgets\icons;
use arter\amos\core\widget\WidgetIcon;
use arter\amos\translation\AmosTranslation;
use Yii;
use yii\helpers\ArrayHelper;
class WidgetIconTrLanguage extends WidgetIcon
{
/**
* @inheritdoc
*/
public function init()
{
parent::init();
$this->setLabel(AmosTranslation::tHtml('amostranslation', 'Language list'));
$this->setDescription(AmosTranslation::t('amostranslation', 'Language list'));
$this->setIcon('translate');
$this->setIconFramework('am');
$this->setUrl(Yii::$app->urlManager->createUrl(['/translatemanager/language/list']));
$this->setCode('TRANSLATION_LIST');
$this->setModuleName('translation');
$this->setNamespace(__CLASS__);
$this->setClassSpan(
ArrayHelper::merge(
$this->getClassSpan(),
[
'bk-backgroundIcon',
'color-grey'
]
)
);
}
}