847
836
// Replace the Head Content with our generated javascript
848
837
$data['javaScript'] = $javaScriptContent;
852
$this->widget->save(['saveWidgetOptions' => false, 'notify' => false, 'notifyDisplays' => true, 'audit' => false]);
856
839
return $this->renderTemplate($data);
859
843
public function isValid()
861
845
// Using the information you have in your module calculate whether it is valid or not.