/** * @inheritDoc IWidget::getTitle() * * @return string */ public function getTitle() { if ($userGroupId = $this->getSettings()->userGroupId) { $userGroup = craft()->userGroups->getGroupById($userGroupId); if ($userGroup) { return Craft::t('New Users') . ' – ' . Craft::t($userGroup->name); } } return parent::getTitle(); }