/**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->_fileKey = $this->attribute;
     if ($this->thumbAttribute !== null) {
         $this->_thumbKey = $this->thumbAttribute;
     }
 }
 /**
  * @inheritdoc
  */
 protected function getWidgetData()
 {
     return array_merge(parent::getWidgetData(), ['data-max-count' => $this->maxCount, 'data-msg-max-count' => $this->messageMaxCount]);
 }