Actions

BeforeSurveyBarRender

From LimeSurvey Manual

Important.png
  This feature is not yet released.

When

This event is fired before the survey bar is rendered.


Input

The event receives the following information:

Name Type Description
surveyId integer The id of the current survey


Possible output

The following information can be set in the event:

Name Type Description
menus Menu[] Array of Menu objects


Example

public function beforeSurveyBarRender()
{
    $event = $this->getEvent();
    $surveyId = $event->get('surveyId');

    $menu = new Menu(array(
        'label' => $this->gT('MyPlugin'),
        'iconClass' => 'fa fa-some-icon',
        'href' => $href
    ));

    $event->append('menus', array($menu));
}