public function getSwitcherButton() { if (!isset($this['button'])) { $this['button'] = $button = new Button(); $button->setText('Go!')->setType('primary')->setAttribute('href', '#')->setAttribute('data-page-button', $this->createLinkName()); } return $this['button']; }