/** * The CMS controller executes this method every time when the page or layout loads. * Set the AddThis PubId. * @return null */ public function onRun() { $this->page['pubid'] = \AxC\AddThis\Models\Settings::get('pubid'); }