startActions(); if (Event::handle('StartProfileListItemActionElements', array($this))) { $this->showApproveButtons(); Event::handle('EndProfileListItemActionElements', array($this)); } $this->endActions(); } public function showApproveButtons() { $this->out->elementStart('li', 'entity_approval'); $form = new ApproveSubForm($this->out, $this->profile); $form->show(); $this->out->elementEnd('li'); } }