/** * @return array */ public function getCallableData() { $attributes = parent::getCallableData(); if (!$attributes['attributes']['text']) { $attributes['attributes']['text'] = $this->_obContent; } return $attributes; }
public function rules() { return ArrayHelper::merge(parent::rules(), [[['viewFile'], 'string']]); }
public function rules() { return ArrayHelper::merge(parent::rules(), [['text', 'string']]); }