Наследование: extends Component, implements yii\base\ViewContextInterface, use trait skeeks\cms\traits\WidgetTrait
Пример #1
0
 /**
  * @return array
  */
 public function getCallableData()
 {
     $attributes = parent::getCallableData();
     if (!$attributes['attributes']['text']) {
         $attributes['attributes']['text'] = $this->_obContent;
     }
     return $attributes;
 }
Пример #2
0
 public function rules()
 {
     return ArrayHelper::merge(parent::rules(), [[['viewFile'], 'string']]);
 }
Пример #3
0
 public function rules()
 {
     return ArrayHelper::merge(parent::rules(), [['text', 'string']]);
 }