public function renderContents($writer) { if ($this->getButtonTag() === TButtonTag::Button) { parent::renderContents($writer); } }