public function viewerMenuLinks($actor)
    {
        $context = new AnCommandContext();
        $context->menuItems = new LibBaseTemplateObjectContainer();
        $context->actor = $actor;
        $context->actor->components->registerEventDispatcher($this->getService('anahita:event.dispatcher'));
        $this->getService('anahita:event.dispatcher')->dispatchEvent('onMenuDisplay', $context);

        return $context->menuItems;
    }
public function viewerMenuLinks($actor)
    {
        $context = new AnCommandContext();
        $context->menuItems = new LibBaseTemplateObjectContainer();
        $context->actor = $actor;
        $context->actor->components->registerEventDispatcher($this->getService('anahita:event.dispatcher'));
        $this->getService('anahita:event.dispatcher')->dispatchEvent('onMenuDisplay', $context);

        return $context->menuItems;
    }
public function viewerMenuLinks ( $ actor ) { $ context = new AnCommandContext ( ) ; $ context -> menuItems = new LibBaseTemplateObjectContainer ( ) ; $ context -> actor = $ actor ; $ context -> actor -> components -> registerEventDispatcher ( $ this -> getService ( 'anahita:event.dispatcher' ) ) ; $ this -> getService ( 'anahita:event.dispatcher' ) -> dispatchEvent ( 'onMenuDisplay' , $ context ) ; return $ context -> menuItems ; }
Return the list of enabled app links on an actor's profile.

@param actor object ComActorsDomainEntityActor

@return array LibBaseTemplateObjectContainer
Return the list of enabled app links on an actor s profile .