/** * @throws \yii\base\InvalidConfigException */ public function init() { parent::init(); if (empty($this->urlTemplate)) { throw new InvalidConfigException("'urlTemplate' cannot be empty."); } }
/** * Initializes the marker. * @throws \yii\base\InvalidConfigException */ public function init() { parent::init(); if (empty($this->latLng)) { throw new InvalidConfigException("'latLng' attribute cannot be empty."); } }